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

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef PAGE1_H_INCLUDED
  2. #define PAGE1_H_INCLUDED
  3. #include "dialog.h"
  4. class CNetPlacesWizardPage1 : public CPropertyPage
  5. {
  6. public:
  7.     CNetPlacesWizardPage1(NETPLACESWIZARDDATA* pdata): m_pdata(pdata), m_hwndExampleTT(NULL) {}
  8. protected:
  9.     // Message handlers
  10.     virtual INT_PTR DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  11.     BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
  12.     BOOL OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  13.     BOOL OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh);
  14.     BOOL OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized);
  15.     BOOL OnDestroy(HWND hwnd);
  16.     // Helpers
  17.     DWORD GetNextPage(HWND hwndDlg);
  18.     void SetPageState(HWND hwnd);
  19.     void InitExampleTooltip(HWND hwnd);
  20.     void TrackExampleTooltip(HWND hwnd);
  21.     void ShowExampleTooltip(HWND hwnd);
  22.     // Data
  23.     NETPLACESWIZARDDATA* m_pdata;
  24.     HWND m_hwndExampleTT;
  25.     // Parent subclass stuff
  26.     HWND m_hwnd;
  27.     WNDPROC m_pfnOldPropSheetParentProc;
  28.     static LRESULT CALLBACK StaticParentSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  29.     LRESULT CALLBACK ParentSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  30. };
  31. #endif // !PAGE1_H_INCLUDED