#include <WebDlg.h>
Inherits CDialog.
Public Member Functions | |
| CWebDlg (CWnd *pParent=NULL) | |
| VARIANT | ExecuteScript (CString csCode, CString csLanguage) |
| VARIANT | ExecuteJavascript (CString csCode) |
| void | OpenUrl (const std::string &url) |
| void | OpenUrl (CString csUrl) |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| afx_msg void | OnBeforeNavigate2 (LPDISPATCH pDisp, VARIANT FAR *URL, VARIANT FAR *Flags, VARIANT FAR *TargetFrameName, VARIANT FAR *PostData, VARIANT FAR *Headers, BOOL FAR *Cancel) |
| afx_msg void | OnDocumentComplete (LPDISPATCH pDisp, VARIANT FAR *URL) |
| virtual BOOL | OnInitDialog () |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
| afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
| afx_msg void | OnNavigateComplete2Explorer1 (LPDISPATCH pDisp, VARIANT FAR *URL) |
| afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
Private Types | |
| enum | { IDD = IDD_WEB } |
Private Attributes | |
| CWebBrowser2 | m_explore |
| CBrush | m_brushBG |
| CString | m_csUrl |
Definition at line 18 of file WebDlg.h.
| CWebDlg::CWebDlg | ( | CWnd * | pParent = NULL |
) |
Definition at line 23 of file WebDlg.cpp.
| void CWebDlg::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 32 of file WebDlg.cpp.
References IDC_EXPLORER1, and m_explore.
| VARIANT CWebDlg::ExecuteJavascript | ( | CString | csCode | ) |
Definition at line 129 of file WebDlg.cpp.
References ExecuteScript().
| VARIANT CWebDlg::ExecuteScript | ( | CString | csCode, | |
| CString | csLanguage | |||
| ) |
Definition at line 98 of file WebDlg.cpp.
References CWebBrowser2::GetDocument(), and m_explore.
Referenced by ExecuteJavascript().
| void CWebDlg::OnBeforeNavigate2 | ( | LPDISPATCH | pDisp, | |
| VARIANT FAR * | URL, | |||
| VARIANT FAR * | Flags, | |||
| VARIANT FAR * | TargetFrameName, | |||
| VARIANT FAR * | PostData, | |||
| VARIANT FAR * | Headers, | |||
| BOOL FAR * | Cancel | |||
| ) | [protected] |
Definition at line 60 of file WebDlg.cpp.
| HBRUSH CWebDlg::OnCtlColor | ( | CDC * | pDC, | |
| CWnd * | pWnd, | |||
| UINT | nCtlColor | |||
| ) | [protected] |
Definition at line 268 of file WebDlg.cpp.
References m_brushBG.
| void CWebDlg::OnDocumentComplete | ( | LPDISPATCH | pDisp, | |
| VARIANT FAR * | URL | |||
| ) | [protected] |
Definition at line 146 of file WebDlg.cpp.
References CWebBrowser2::GetDocument(), Login, and m_explore.
| BOOL CWebDlg::OnEraseBkgnd | ( | CDC * | pDC | ) | [protected] |
Definition at line 285 of file WebDlg.cpp.
| BOOL CWebDlg::OnInitDialog | ( | ) | [protected, virtual] |
Definition at line 242 of file WebDlg.cpp.
References IDC_EXPLORER1, and m_brushBG.
| void CWebDlg::OnNavigateComplete2Explorer1 | ( | LPDISPATCH | pDisp, | |
| VARIANT FAR * | URL | |||
| ) | [protected] |
Definition at line 281 of file WebDlg.cpp.
Definition at line 263 of file WebDlg.cpp.
| void CWebDlg::OpenUrl | ( | CString | csUrl | ) |
Definition at line 134 of file WebDlg.cpp.
References m_csUrl, m_explore, and CWebBrowser2::Navigate().
| void CWebDlg::OpenUrl | ( | const std::string & | url | ) |
Definition at line 140 of file WebDlg.cpp.
References m_csUrl, m_explore, and CWebBrowser2::Navigate().
CBrush CWebDlg::m_brushBG [private] |
Definition at line 30 of file WebDlg.h.
Referenced by OnCtlColor(), and OnInitDialog().
CString CWebDlg::m_csUrl [private] |
CWebBrowser2 CWebDlg::m_explore [private] |
Definition at line 29 of file WebDlg.h.
Referenced by DoDataExchange(), ExecuteScript(), OnDocumentComplete(), and OpenUrl().
1.6.1