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.

50 lines
1.0 KiB

  1. // Remove.cpp : implementation file
  2. //
  3. #include "precomp.hxx"
  4. #ifdef _DEBUG
  5. #define new DEBUG_NEW
  6. #undef THIS_FILE
  7. static char THIS_FILE[] = __FILE__;
  8. #endif
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CRemove dialog
  11. CRemove::CRemove(CWnd* pParent /*=NULL*/)
  12. : CDialog(CRemove::IDD, pParent)
  13. {
  14. //{{AFX_DATA_INIT(CRemove)
  15. m_iState = 0;
  16. //}}AFX_DATA_INIT
  17. }
  18. void CRemove::DoDataExchange(CDataExchange* pDX)
  19. {
  20. CDialog::DoDataExchange(pDX);
  21. //{{AFX_DATA_MAP(CRemove)
  22. DDX_Radio(pDX, IDC_RADIO1, m_iState);
  23. //}}AFX_DATA_MAP
  24. }
  25. BEGIN_MESSAGE_MAP(CRemove, CDialog)
  26. //{{AFX_MSG_MAP(CRemove)
  27. //}}AFX_MSG_MAP
  28. END_MESSAGE_MAP()
  29. BOOL CRemove::OnInitDialog()
  30. {
  31. CDialog::OnInitDialog();
  32. if (1 == m_iState)
  33. {
  34. GetDlgItem(IDC_RADIO1)->EnableWindow(FALSE);
  35. }
  36. return TRUE; // return TRUE unless you set the focus to a control
  37. // EXCEPTION: OCX Property Pages should return FALSE
  38. }