Source code of Windows XP (NT5)
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.

63 lines
1.7 KiB

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. // MangDlg.H - Handles the IDD_MANAGED_WIZARD_PAGE
  5. //
  6. #ifndef _MANGDLG_H_
  7. #define _MANGDLG_H_
  8. class CNewComputerExtensions; // fwd decl
  9. // Definitions
  10. LPVOID
  11. CManagedPage_CreateInstance( void );
  12. // CManagedPage
  13. class
  14. CManagedPage:
  15. public ITab
  16. {
  17. private: // Members
  18. HWND _hDlg;
  19. CNewComputerExtensions* _pNewComputerExtension;
  20. LPWSTR _pszGuid;
  21. BOOL * _pfActivate;
  22. private: // Methods
  23. CManagedPage();
  24. ~CManagedPage();
  25. STDMETHOD(Init)();
  26. // Property Sheet Functions
  27. static INT_PTR CALLBACK
  28. PropSheetDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  29. static UINT CALLBACK
  30. PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  31. static INT_PTR CALLBACK
  32. DupGuidDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
  33. HRESULT _InitDialog( HWND hDlg, LPARAM lParam );
  34. INT _OnCommand( WPARAM wParam, LPARAM lParam );
  35. INT _OnNotify( WPARAM wParam, LPARAM lParam );
  36. HRESULT _OnPSPCB_Create( );
  37. HRESULT _UpdateWizardButtons( );
  38. HRESULT _OnKillActive( );
  39. HRESULT _OnQuery( HWND hDlg );
  40. public: // Methods
  41. friend LPVOID CManagedPage_CreateInstance( void );
  42. // ITab
  43. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  44. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  45. LPARAM lParam, LPUNKNOWN punk );
  46. STDMETHOD(QueryInformation)( LPWSTR pszAttribute, LPWSTR * pszResult );
  47. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  48. friend CNewComputerExtensions;
  49. };
  50. typedef CManagedPage* LPCManagedPage;
  51. #endif // _MANGDLG_H_