home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / secondstep.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-11  |  2.0 KB  |  80 lines

  1. // SecondStep.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "RegenWizard.h"
  6. #include "SecondStep.h"
  7.  
  8. #include "RegenWizardAW.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CSecondStep dialog
  18.  
  19.  
  20. CSecondStep::CSecondStep(CRegenWizardAppWiz *pMain, CWnd* pParent /*=NULL*/)
  21.     : CAppWizStepDlg(CSecondStep::IDD),
  22.     m_pclsMain(pMain)
  23. {
  24.     //{{AFX_DATA_INIT(CSecondStep)
  25.     m_strDestination    = _T("");
  26.     m_strSDKInclude        = _T("");
  27.     //}}AFX_DATA_INIT
  28.     
  29.     m_pclsMain->m_Dictionary [_T("SDKIncludeDirectory")]    = _T("");
  30. }
  31.  
  32.  
  33. void CSecondStep::DoDataExchange(CDataExchange* pDX)
  34. {
  35.     CDialog::DoDataExchange(pDX);
  36.     //{{AFX_DATA_MAP(CSecondStep)
  37.     DDX_Text(pDX, IDC_EDIT_DESTINATION, m_strDestination);
  38.     DDX_Text(pDX, IDC_EDIT_SDKINCLUDE, m_strSDKInclude);
  39.     //}}AFX_DATA_MAP
  40. }
  41.  
  42.  
  43. BEGIN_MESSAGE_MAP(CSecondStep, CAppWizStepDlg)
  44.     //{{AFX_MSG_MAP(CSecondStep)
  45.     ON_EN_CHANGE(IDC_EDIT_DESTINATION, OnChangeEditDestination)
  46.     ON_EN_CHANGE(IDC_EDIT_SDKINCLUDE, OnChangeEditSdkinclude)
  47.     ON_WM_SHOWWINDOW()
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CSecondStep message handlers
  53.  
  54. void CSecondStep::OnChangeEditDestination() 
  55. {
  56.     // TODO: Add your control notification handler code here
  57.     UpdateData();
  58.  
  59.     m_pclsMain->m_strDestination = m_strDestination;
  60. }
  61.  
  62. void CSecondStep::OnChangeEditSdkinclude() 
  63. {
  64.     // TODO: Add your control notification handler code here
  65.     UpdateData();
  66.  
  67.     m_pclsMain->m_strSDKInclude = m_strSDKInclude ;    
  68.  
  69.     m_pclsMain->m_Dictionary [_T("SDKIncludeDirectory")] = m_strSDKInclude;
  70. }
  71.  
  72. void CSecondStep::OnShowWindow(BOOL bShow, UINT nStatus) 
  73. {
  74.     CAppWizStepDlg::OnShowWindow(bShow, nStatus);
  75.     
  76.     // TODO: Add your message handler code here
  77.     if (bShow) m_strDestination = m_pclsMain->m_strDestination;
  78.     UpdateData(false);
  79. }
  80.