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.

41 lines
1019 B

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifndef _BASPDLG_H
  3. #define _BASPDLG_H
  4. #include <prsht.h>
  5. //---------------------------------------------------------------------
  6. // CDialogBase - as the name implies base class for all the dialogs
  7. //---------------------------------------------------------------------
  8. class CDialogPropBase
  9. {
  10. protected:
  11. BOOL m_bPersisted;
  12. HWND m_hWnd;
  13. //HMENU m_hmenu;
  14. public:
  15. virtual BOOL OnInitDialog( HWND hwnd , WPARAM , LPARAM ){ m_hWnd = hwnd; return FALSE; }
  16. virtual BOOL OnDestroy( ){ return( TRUE /*DestroyMenu( m_hmenu )*/ ); }
  17. virtual BOOL GetPropertySheetPage( PROPSHEETPAGE& ){ return FALSE;}
  18. virtual BOOL PersistSettings( HWND ){ return FALSE;}
  19. virtual BOOL IsValidSettings( HWND ){ return TRUE;}
  20. virtual BOOL OnNotify( int , LPNMHDR , HWND );
  21. virtual BOOL OnContextMenu( HWND , POINT& );
  22. virtual BOOL OnHelp( HWND , LPHELPINFO );
  23. CDialogPropBase( ){}
  24. //virtual ~CDialogBase( );
  25. };
  26. #endif //_BASPDLG_H