update for HEAD-2003091401
[reactos.git] / subsys / system / explorer / Seashell / SeaShellExt / Include / HtmlCtrl.h
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.
6 //
7 #include "UIHtmlView.h"
8
9 class CTRL_EXT_CLASS CHtmlCtrl : public CUIHtmlView {
10 public:
11         CHtmlCtrl() { }
12         ~CHtmlCtrl() { }
13
14         BOOL CreateFromStatic(UINT nID, CWnd* pParent);
15
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.
19         //
20         virtual void PostNcDestroy() {  }
21
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);
25
26         // override to trap "app:" pseudo protocol
27         virtual void OnBeforeNavigate2( LPCTSTR lpszURL,
28                 DWORD nFlags,
29                 LPCTSTR lpszTargetFrameName,
30                 CByteArray& baPostedData,
31                 LPCTSTR lpszHeaders,
32                 BOOL* pbCancel );
33
34         // override to handle links to "app:mumble...". lpszWhere will be "mumble"
35         virtual void OnAppCmd(LPCTSTR lpszWhere);
36         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
37
38         DECLARE_MESSAGE_MAP();
39         afx_msg LRESULT OnAppCbIeSelChange(WPARAM wParam, LPARAM lParam );
40         DECLARE_DYNAMIC(CHtmlCtrl)
41 };
42