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.

128 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. anondlg.h
  5. Abstract:
  6. WWW Anonymous account dialog
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef _ANONDLG_H_
  14. #define _ANONDLG_H_
  15. class CAnonymousDlg : public CDialog
  16. /*++
  17. Class Description:
  18. Anonymous authentication dialog
  19. Public Interface:
  20. CAnonymousDlg : Constructor
  21. GetUserName : Get user name entered
  22. GetPassword : Get password entered
  23. GetPasswordSync : Get password sync entered
  24. --*/
  25. {
  26. //
  27. // Construction
  28. //
  29. public:
  30. //
  31. // standard constructor
  32. //
  33. CAnonymousDlg(
  34. IN CString & strServerName,
  35. IN CString & strUserName,
  36. IN CString & strPassword,
  37. IN BOOL & fPasswordSync,
  38. IN CWnd * pParent = NULL
  39. );
  40. //
  41. // Access
  42. //
  43. public:
  44. CString & GetUserName() { return m_strUserName; }
  45. CString & GetPassword() { return m_strPassword; }
  46. BOOL & GetPasswordSync() { return m_fPasswordSync; }
  47. //
  48. // Dialog Data
  49. //
  50. protected:
  51. //{{AFX_DATA(CAnonymousDlg)
  52. enum { IDD = IDD_ANONYMOUS };
  53. CEdit m_edit_UserName;
  54. CEdit m_edit_Password;
  55. CStatic m_static_Username;
  56. CStatic m_static_Password;
  57. CButton m_button_CheckPassword;
  58. CButton m_group_AnonymousLogon;
  59. CButton m_chk_PasswordSync;
  60. //}}AFX_DATA
  61. //
  62. // Overrides
  63. //
  64. protected:
  65. // ClassWizard generated virtual function overrides
  66. //{{AFX_VIRTUAL(CAnonymousDlg)
  67. protected:
  68. virtual void DoDataExchange(CDataExchange * pDX);
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. // Generated message map functions
  75. //{{AFX_MSG(CAnonymousDlg)
  76. afx_msg void OnButtonBrowseUsers();
  77. afx_msg void OnButtonCheckPassword();
  78. afx_msg void OnCheckEnablePwSynchronization();
  79. afx_msg void OnChangeEditUsername();
  80. virtual BOOL OnInitDialog();
  81. //}}AFX_MSG
  82. afx_msg void OnItemChanged();
  83. DECLARE_MESSAGE_MAP()
  84. void SetControlStates();
  85. private:
  86. BOOL m_fPasswordSyncChanged;
  87. BOOL m_fPasswordSyncMsgShown;
  88. BOOL m_fUserNameChanged;
  89. BOOL m_fPasswordSync;
  90. CString m_strUserName;
  91. CString m_strPassword;
  92. CString & m_strServerName;
  93. };
  94. #endif // _ANONDLG_H_