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
00008
00009
00010 #include "WebBrowser2.h"
00011
00012
00013
00015
00016 class CNel_launcherDlg;
00017
00018 class CWebDlg : public CDialog
00019 {
00020
00021 public:
00022 CWebDlg(CWnd* pParent = NULL);
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
00034
00035
00036
00037 enum { IDD = IDD_WEB };
00038
00039
00040
00041
00042
00043
00044
00045 protected:
00046 virtual void DoDataExchange(CDataExchange* pDX);
00047
00048
00049
00050 protected:
00051
00052
00053
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
00063 DECLARE_MESSAGE_MAP()
00064 };
00065
00066
00067
00068
00069 #endif // !defined(AFX_WEBDLG_H__8B645BB5_9C54_48EA_9EA3_24F613895BAF__INCLUDED_)