htmlpage.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //+----------------------------------------------------------------------------
  2. //
  3. //  HTML property pages
  4. //
  5. //  Microsoft Windows
  6. //  Copyright (C) Microsoft Corporation, 1992 - 1997.
  7. //
  8. //  File:      htmlpage.h
  9. //
  10. //  Contents:  CHtmlPropPage definition
  11. //
  12. //  History:   14-Jan-97 EricB Created
  13. //
  14. //-----------------------------------------------------------------------------
  15. #ifndef _HTMLPAGE_H_
  16. #define _HTMLPAGE_H_
  17. #include "view.h"
  18. class CHtmlPropPage // : public IHtmlPropPage
  19. {
  20. public:
  21. #ifdef _DEBUG
  22.     char szClass[16];
  23. #endif
  24.     CHtmlPropPage(void);
  25.     //
  26.     //  Static WndProc to be passed to PROPSHEETPAGE::pfnDlgProc
  27.     //
  28.     static BOOL CALLBACK StaticDlgProc(HWND hDlg,     UINT uMsg,
  29.                                        WPARAM wParam, LPARAM lParam);
  30.     //
  31.     //  Instance specific wind proc
  32.     //
  33.     LRESULT DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  34.     //
  35.     // Page/object creation member.
  36.     //
  37.     static HRESULT CreatePage(LPCTSTR pszUrl, LPCTSTR pszTabTitle,
  38.                               HINSTANCE hInstance, HPROPSHEETPAGE *phPage);
  39. private:
  40.     ~CHtmlPropPage(void);
  41.     //
  42.     //  Member functions, called by WndProc
  43.     //
  44.     HRESULT OnInitDialog(HWND hPage, LONG lParam);
  45.     LRESULT OnCommand(int id, HWND hwndCtl, UINT codeNotify);
  46.     LRESULT OnNotify(UINT uMessage, UINT uParam, LPARAM lParam);
  47.     LRESULT OnApply(void);
  48.     LRESULT OnCancel(void);
  49.     LRESULT OnSetFocus(HWND hwndLoseFocus);
  50.     LRESULT OnShowWindow(void);
  51.     LRESULT OnDestroy(void);
  52.     LRESULT OnPSMQuerySibling(WPARAM wParam, LPARAM lParam);
  53.     LRESULT OnPSNSetActive(LPARAM lParam);
  54.     LRESULT OnPSNKillActive(LPARAM lParam);
  55.     LRESULT OnHelp(LPARAM lParam) { return TRUE; }
  56.     LRESULT OnDoInit();
  57.     static  UINT CALLBACK PageRelease(HWND hwnd, UINT uMsg,
  58.                                       LPPROPSHEETPAGE ppsp);
  59.     //
  60.     //  Data members
  61.     //
  62.     HWND            m_hPage;
  63.     HINSTANCE       m_hInst;
  64.     LPTSTR          m_pszUrl;
  65.     CPropView     * m_pPropView;
  66.     BOOL            m_fDirty;
  67.     BOOL            m_fInInit;
  68. };
  69. #endif // _HTMLPAGE_H_