HtmlDlg.h
上传用户:zhadl198
上传日期:2009-06-12
资源大小:56k
文件大小:1k
- #pragma once
- #include "CWebBrowser2.h"
- #include "NewWebDlg.h"
- #include "afxhtml.h"
- #include <comutil.h>
- #include <comdef.h>
- // CHtmlDlg 对话框
- class CMyWebBrowser :public CHtmlView
- {
- public:
- CMyWebBrowser(CWnd* pParent)
- {
- //pMain = (CWebOcxMain*)pParent;
- flag = 0;
- };
- public:
- //CWebOcxMain* pMain;
- int flag;
- virtual void OnDocumentComplete(LPCTSTR lpszURL);
- virtual void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel);
- DECLARE_MESSAGE_MAP()
- afx_msg void OnDestroy();
- CNewWebDlg *pNwDlg;
- };
- class CHtmlDlg : public CDialog
- {
- DECLARE_DYNAMIC(CHtmlDlg)
- public:
- CHtmlDlg(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CHtmlDlg();
- // 对话框数据
- enum { IDD = IDD_DIALOG_HTML };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- CWebBrowser2* m_pWebBrowser;
- };