GME
13
|
00001 #pragma once 00002 // HtmlCtrl.h : header file 00003 // 00004 00006 // CHtmlCtrl html view 00007 00008 #ifndef __AFXEXT_H__ 00009 #include <afxext.h> 00010 #endif 00011 #include <afxhtml.h> 00012 00013 class CConsoleCtl; 00014 00015 class CHtmlCtrl : public CHtmlView 00016 { 00017 public: 00018 CHtmlCtrl(); 00019 ~CHtmlCtrl() { } 00020 00021 // html Data 00022 public: 00023 //{{AFX_DATA(CHtmlCtrl) 00024 // NOTE: the ClassWizard will add data members here 00025 //}}AFX_DATA 00026 00027 // Attributes 00028 public: 00029 00030 // Operations 00031 public: 00032 BOOL CreateFromStatic(UINT nID, CWnd* pParent); 00033 00034 // Normally, CHtmlView destroys itself in PostNcDestroy, 00035 // but we don't want to do that for a control since a control 00036 // is usually implemented as a stack object in a dialog. 00037 // 00038 virtual void PostNcDestroy() { } 00039 00040 00041 // Overrides 00042 // ClassWizard generated virtual function overrides 00043 //{{AFX_VIRTUAL(CHtmlCtrl) 00044 protected: 00045 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00046 //}}AFX_VIRTUAL 00047 00048 // override to trap "app:" pseudo protocol 00049 virtual void OnBeforeNavigate2( LPCTSTR lpszURL, 00050 DWORD nFlags, 00051 LPCTSTR lpszTargetFrameName, 00052 CByteArray& baPostedData, 00053 LPCTSTR lpszHeaders, 00054 BOOL* pbCancel ); 00055 00056 // override to handle links to "app:mumble...". lpszWhere will be "mumble" 00057 virtual void OnMgaURL(LPCTSTR lpszWhere); 00058 virtual void OnDocumentComplete(LPCTSTR lpszURL); 00059 00060 // Implementation 00061 protected: 00062 00063 #ifdef _DEBUG 00064 virtual void AssertValid() const; 00065 virtual void Dump(CDumpContext& dc) const; 00066 #endif 00067 00068 const CConsoleCtl *m_control; 00069 00070 // Generated message map functions 00071 //{{AFX_MSG(CHtmlCtrl) 00072 afx_msg void OnDestroy(); 00073 afx_msg int OnMouseActivate(CWnd* pDesktopWnd,UINT nHitTest,UINT message); 00074 //}}AFX_MSG 00075 DECLARE_MESSAGE_MAP() 00076 DECLARE_DYNAMIC(CHtmlCtrl) 00077 }; 00078 00080 00081 //{{AFX_INSERT_LOCATION}} 00082 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00083