1 ////////////////////////////////////////////////////////////////
2 // Microsoft Systems Journal -- December 1999
3 // If this code works, it was written by Paul DiLascia.
4 // If not, I don't know who wrote it.
5 // Compiles with Visual C++ 6.0, runs on Windows 98 and probably NT too.
7 #include "UIHtmlView.h"
9 class CTRL_EXT_CLASS CHtmlCtrl : public CUIHtmlView {
14 BOOL CreateFromStatic(UINT nID, CWnd* pParent);
16 // Normally, CHtmlView destroys itself in PostNcDestroy,
17 // but we don't want to do that for a control since a control
18 // is usually implemented as a stack object in a dialog.
20 virtual void PostNcDestroy() { }
22 // overrides to bypass MFC doc/view frame dependencies
23 afx_msg void OnDestroy();
24 afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT msg);
26 // override to trap "app:" pseudo protocol
27 virtual void OnBeforeNavigate2( LPCTSTR lpszURL,
29 LPCTSTR lpszTargetFrameName,
30 CByteArray& baPostedData,
34 // override to handle links to "app:mumble...". lpszWhere will be "mumble"
35 virtual void OnAppCmd(LPCTSTR lpszWhere);
36 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
38 DECLARE_MESSAGE_MAP();
39 afx_msg LRESULT OnAppCbIeSelChange(WPARAM wParam, LPARAM lParam );
40 DECLARE_DYNAMIC(CHtmlCtrl)