WebDlg.h

Go to the documentation of this file.
00001 #if !defined(AFX_WEBDLG_H__8B645BB5_9C54_48EA_9EA3_24F613895BAF__INCLUDED_)
00002 #define AFX_WEBDLG_H__8B645BB5_9C54_48EA_9EA3_24F613895BAF__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // WebDlg.h : header file
00008 //
00009 
00010 #include "WebBrowser2.h"
00011 //#include "LoadingPageDlg.h"
00012 
00013 
00015 // CWebDlg dialog
00016 class CNel_launcherDlg;
00017 
00018 class CWebDlg : public CDialog
00019 {
00020 // Construction
00021 public:
00022     CWebDlg(CWnd* pParent = NULL);   // standard constructor
00023     VARIANT ExecuteScript(CString csCode, CString csLanguage);
00024     VARIANT ExecuteJavascript(CString csCode);
00025     void OpenUrl(const std::string &url);
00026     void OpenUrl(CString csUrl);
00027 
00028 private:
00029     CWebBrowser2    m_explore;
00030     CBrush          m_brushBG;
00031     CString         m_csUrl;
00032 
00033 //  CLoadingPageDlg m_dlgLoading;
00034 
00035 // Dialog Data
00036     //{{AFX_DATA(CWebDlg)
00037     enum { IDD = IDD_WEB };
00038         // NOTE: the ClassWizard will add data members here
00039     //}}AFX_DATA
00040 
00041 
00042 // Overrides
00043     // ClassWizard generated virtual function overrides
00044     //{{AFX_VIRTUAL(CWebDlg)
00045     protected:
00046     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00047     //}}AFX_VIRTUAL
00048 
00049 // Implementation
00050 protected:
00051 
00052     // Generated message map functions
00053     //{{AFX_MSG(CWebDlg)
00054     afx_msg void OnBeforeNavigate2(LPDISPATCH pDisp, VARIANT FAR* URL, VARIANT FAR* Flags, VARIANT FAR* TargetFrameName, VARIANT FAR* PostData, VARIANT FAR* Headers, BOOL FAR* Cancel);
00055     afx_msg void OnDocumentComplete(LPDISPATCH pDisp, VARIANT FAR* URL);
00056     virtual BOOL OnInitDialog();
00057     afx_msg void OnSize(UINT nType, int cx, int cy);
00058     afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00059     afx_msg void OnNavigateComplete2Explorer1(LPDISPATCH pDisp, VARIANT FAR* URL);
00060     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00061     DECLARE_EVENTSINK_MAP()
00062     //}}AFX_MSG
00063     DECLARE_MESSAGE_MAP()
00064 };
00065 
00066 //{{AFX_INSERT_LOCATION}}
00067 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00068 
00069 #endif // !defined(AFX_WEBDLG_H__8B645BB5_9C54_48EA_9EA3_24F613895BAF__INCLUDED_)

Generated on Thu Jan 7 08:30:42 2010 for NeLNS by  doxygen 1.6.1