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.

77 lines
1.7 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1998.
  5. //
  6. // File: remove.cpp
  7. //
  8. // Contents: remove application dialog
  9. //
  10. // Classes: CRemove
  11. //
  12. // History: 03-14-1998 stevebl Commented
  13. //
  14. //---------------------------------------------------------------------------
  15. #include "precomp.hxx"
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CRemove dialog
  23. CRemove::CRemove(CWnd* pParent /*=NULL*/)
  24. : CDialog(CRemove::IDD, pParent)
  25. {
  26. //{{AFX_DATA_INIT(CRemove)
  27. m_iState = 0;
  28. //}}AFX_DATA_INIT
  29. }
  30. void CRemove::DoDataExchange(CDataExchange* pDX)
  31. {
  32. CDialog::DoDataExchange(pDX);
  33. //{{AFX_DATA_MAP(CRemove)
  34. DDX_Radio(pDX, IDC_RADIO1, m_iState);
  35. //}}AFX_DATA_MAP
  36. }
  37. BEGIN_MESSAGE_MAP(CRemove, CDialog)
  38. //{{AFX_MSG_MAP(CRemove)
  39. ON_WM_CONTEXTMENU()
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. BOOL CRemove::OnInitDialog()
  43. {
  44. CDialog::OnInitDialog();
  45. return TRUE; // return TRUE unless you set the focus to a control
  46. // EXCEPTION: OCX Property Pages should return FALSE
  47. }
  48. LRESULT CRemove::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
  49. {
  50. switch (message)
  51. {
  52. case WM_HELP:
  53. StandardHelp((HWND)((LPHELPINFO) lParam)->hItemHandle, IDD);
  54. return 0;
  55. default:
  56. return CDialog::WindowProc(message, wParam, lParam);
  57. }
  58. }
  59. void CRemove::OnContextMenu(CWnd* pWnd, CPoint point)
  60. {
  61. StandardContextMenu(pWnd->m_hWnd, IDD_REMOVE);
  62. }