Leaked source code of windows server 2003
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.

44 lines
1.2 KiB

  1. #include "stdafx.h"
  2. #include "WizardSheet.h"
  3. CImportOrExport::CImportOrExport( CWizardSheet* pTheSheet ) :
  4. m_pTheSheet( pTheSheet )
  5. {
  6. m_strTitle.LoadString( IDS_TITLE_IMPORTOREXPORT );
  7. m_strSubTitle.LoadString( IDS_SUBTITLE_IMPORTOREXPORT );
  8. SetHeaderTitle( m_strTitle );
  9. SetHeaderSubTitle( m_strSubTitle );
  10. }
  11. int CImportOrExport::OnWizardNext()
  12. {
  13. return Button_GetCheck( GetDlgItem( IDC_IMPORT ) ) ? IDD_WPIMP_LOADPKG : IDD_WPEXP_SELECTSITE;
  14. }
  15. BOOL CImportOrExport::OnSetActive()
  16. {
  17. SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT );
  18. return TRUE;
  19. }
  20. LRESULT CImportOrExport::OnInitDialog( UINT, WPARAM, LPARAM, BOOL& )
  21. {
  22. Button_SetCheck( GetDlgItem( IDC_EXPORT ), TRUE );
  23. SetWindowFont( GetDlgItem( IDC_EXPORT ), m_pTheSheet->m_fontBold.get(), FALSE );
  24. SetWindowFont( GetDlgItem( IDC_IMPORT ), m_pTheSheet->m_fontBold.get(), FALSE );
  25. return 0;
  26. }
  27. LRESULT CImportOrExport::OnDoubleClick( WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/ )
  28. {
  29. ::PostMessage( m_pTheSheet->m_hWnd,
  30. WM_COMMAND,
  31. MAKEWPARAM( ID_WIZNEXT, BN_CLICKED ),
  32. NULL );
  33. return 0;
  34. }