Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

  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. #ifndef __AFXEXT_H__
  8. #include <afxext.h>
  9. #endif
  10. #include <afxhtml.h>
  11. class CHtmlCtrl : public CHtmlView {
  12. public:
  13. CHtmlCtrl() { }
  14. ~CHtmlCtrl() { }
  15. 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.
  19. //
  20. virtual void PostNcDestroy() { }
  21. // overrides to bypass MFC doc/view frame dependencies
  22. afx_msg void OnDestroy();
  23. afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT msg);
  24. // override to trap "app:" pseudo protocol
  25. virtual void OnBeforeNavigate2( LPCTSTR lpszURL,
  26. DWORD nFlags,
  27. LPCTSTR lpszTargetFrameName,
  28. CByteArray& baPostedData,
  29. LPCTSTR lpszHeaders,
  30. BOOL* pbCancel );
  31. // override to handle links to "app:mumble...". lpszWhere will be "mumble"
  32. virtual void OnAppCmd(LPCTSTR lpszWhere);
  33. DECLARE_MESSAGE_MAP();
  34. DECLARE_DYNAMIC(CHtmlCtrl)
  35. };