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.

102 lines
2.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 -99 **/
  4. /**********************************************************************/
  5. /*
  6. vrfysrv.cpp
  7. Comment goes here
  8. FILE HISTORY:
  9. */
  10. #include "stdafx.h"
  11. #include "winssnap.h"
  12. #include "VrfySrv.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CVerifyWins dialog
  20. CVerifyWins::CVerifyWins(CWnd* pParent /*=NULL*/)
  21. : CBaseDialog(CVerifyWins::IDD, pParent), m_fCancelPressed(FALSE)
  22. {
  23. //{{AFX_DATA_INIT(CVerifyWins)
  24. // NOTE: the ClassWizard will add member initialization here
  25. //}}AFX_DATA_INIT
  26. // Create(CVerifyWins::IDD, pParent);
  27. }
  28. void CVerifyWins::DoDataExchange(CDataExchange* pDX)
  29. {
  30. CBaseDialog::DoDataExchange(pDX);
  31. //{{AFX_DATA_MAP(CVerifyWins)
  32. DDX_Control(pDX, IDCANCEL, m_buttonCancel);
  33. DDX_Control(pDX, IDC_STATIC_SERVERNAME, m_staticServerName);
  34. //}}AFX_DATA_MAP
  35. }
  36. BEGIN_MESSAGE_MAP(CVerifyWins, CBaseDialog)
  37. //{{AFX_MSG_MAP(CVerifyWins)
  38. ON_WM_SETCURSOR()
  39. //}}AFX_MSG_MAP
  40. END_MESSAGE_MAP()
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CVerifyWins message handlers
  43. void CVerifyWins::OnCancel()
  44. {
  45. // TODO: Add extra cleanup here
  46. m_fCancelPressed = TRUE;
  47. //CBaseDialog::OnCancel();
  48. }
  49. //
  50. // Dismiss the dialog
  51. //
  52. void
  53. CVerifyWins::Dismiss()
  54. {
  55. DestroyWindow();
  56. }
  57. void
  58. CVerifyWins::PostNcDestroy()
  59. {
  60. // delete this;
  61. }
  62. void
  63. CVerifyWins::SetServerName(CString strName)
  64. {
  65. m_staticServerName.SetWindowText(strName);
  66. }
  67. BOOL CVerifyWins::OnInitDialog()
  68. {
  69. CBaseDialog::OnInitDialog();
  70. //m_buttonCancel.ShowWindow(FALSE);
  71. return TRUE; // return TRUE unless you set the focus to a control
  72. // EXCEPTION: OCX Property Pages should return FALSE
  73. }
  74. BOOL CVerifyWins::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
  75. {
  76. // TODO: Add your message handler code here and/or call default
  77. SetCursor(LoadCursor(NULL, IDC_ARROW));
  78. return CBaseDialog::OnSetCursor(pWnd, nHitTest, message);
  79. }