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.

67 lines
1.5 KiB

  1. #include "precomp.h"
  2. #include "resource.h"
  3. #include "global.h"
  4. #include "PropPg.h"
  5. #include "WelcmSht.h"
  6. #include "nmakwiz.h"
  7. ////////////////////////////////////////////////////////////////////////////////////////////////////
  8. // Static member vars
  9. CWelcomeSheet* CWelcomeSheet::ms_pWelcomeSheet = NULL;
  10. ////////////////////////////////////////////////////////////////////////////////////////////////////
  11. // Static member fns
  12. BOOL APIENTRY CWelcomeSheet::DlgProc( HWND hDlg, UINT message, WPARAM uParam, LPARAM lParam ) {
  13. switch( message ) {
  14. case WM_INITDIALOG:
  15. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT );
  16. return TRUE;
  17. case WM_NOTIFY:
  18. switch( reinterpret_cast< NMHDR FAR* >( lParam ) -> code ) {
  19. case PSN_QUERYCANCEL:
  20. SetWindowLong( hDlg, DWL_MSGRESULT, !VerifyExitMessageBox());
  21. return TRUE;
  22. case PSN_SETACTIVE:
  23. g_hwndActive = hDlg;
  24. PropSheet_SetWizButtons( GetParent( hDlg ), PSWIZB_NEXT );
  25. return TRUE;
  26. }
  27. default:
  28. break;
  29. }
  30. return FALSE;
  31. }
  32. ////////////////////////////////////////////////////////////////////////////////////////////////////
  33. // Member fns
  34. CWelcomeSheet::CWelcomeSheet( void )
  35. : m_PropertySheetPage( MAKEINTRESOURCE( IDD_PROPPAGE_WELCOME ),
  36. ( DLGPROC ) CWelcomeSheet::DlgProc
  37. )
  38. {
  39. if( NULL == ms_pWelcomeSheet ) { ms_pWelcomeSheet = this; }
  40. }
  41. CWelcomeSheet::~CWelcomeSheet( void )
  42. { ; }