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.

101 lines
4.4 KiB

  1. #ifndef _CACCTP_H
  2. #define _CACCTP_H
  3. #include <tmplEdit.h>
  4. #include "pp_base.h"
  5. #include "AU_Accnt.h"
  6. #include "AUsrUtil.h"
  7. class CAddUser_AccntWiz;
  8. // ----------------------------------------------------------------------------
  9. // CAcctPage
  10. // ----------------------------------------------------------------------------
  11. class CAcctPage : public CBasePropertyPageInterface, public CPropertyPageImpl<CAcctPage>
  12. {
  13. public:
  14. // Constructor/destructor
  15. CAcctPage( CAddUser_AccntWiz* pNW );
  16. ~CAcctPage();
  17. // CBasePropertyPageInterface pure virtual function(s)
  18. enum { IDD = IDD_ACCT_INFO };
  19. virtual long GetIDD () { return IDD; }
  20. // ATL::CPropertyPageImpl overrides
  21. virtual BOOL OnSetActive ();
  22. virtual int OnWizardBack();
  23. virtual int OnWizardNext();
  24. // Property Bag functions
  25. HRESULT ReadProperties ( IPropertyPagePropertyBag* pPPPBag );
  26. HRESULT WriteProperties ( IPropertyPagePropertyBag* pPPPBag );
  27. HRESULT DeleteProperties ( IPropertyPagePropertyBag* pPPPBag );
  28. HRESULT ProvideFinishText ( CString &str );
  29. CString m_csUNamePre2k;
  30. private:
  31. CAddUser_AccntWiz *m_pASW; // pointer to owning property sheet
  32. BOOL m_fInit;
  33. BOOL m_fSimpleMode;
  34. BOOL m_bExchange;
  35. BOOL m_bCreatePOP3MB;
  36. BOOL m_bPOP3Installed;
  37. BOOL m_bPOP3Valid;
  38. CString m_csUserOU;
  39. CString m_csFirstName;
  40. CString m_csLastName;
  41. CString m_csTelephone;
  42. CString m_csOffice;
  43. CString m_csUName;
  44. CString m_csUserCN;
  45. CString m_csAlias;
  46. DWORD m_dwAutoMode;
  47. CString m_csLogonDns;
  48. CEdit m_ctrlFirstName; // Controls on the page.
  49. CEdit m_ctrlLastName; // "
  50. CEdit m_ctrlTelephone; // "
  51. CEdit m_ctrlOffice; // "
  52. CComboBox m_ctrlUName; // "
  53. CEdit m_ctrlUNameLoc; // "
  54. CEdit m_ctrlUNamePre2k; // "
  55. CEdit m_ctrlUNamePre2kLoc;// "
  56. CEdit m_ctrlAlias; // "
  57. CWindowImplAlias<> m_ctrlImplAlias; // Limits the typing to specific characters
  58. CWindowImplAlias<> m_ctrlImplUName; // Limits the typing to specific characters
  59. LRESULT Init ( ); // Our "InitDialog" (called from OnSetActive).
  60. BOOL NextCheck( );
  61. protected:
  62. BEGIN_MSG_MAP (CAcctPage)
  63. MESSAGE_HANDLER (WM_INITDIALOG, OnInitDialog )
  64. MESSAGE_HANDLER (WM_DESTROY, OnDestroy )
  65. COMMAND_HANDLER (IDC_FIRST_NAME, EN_CHANGE, OnChangeEdit )
  66. COMMAND_HANDLER (IDC_LAST_NAME, EN_CHANGE, OnChangeEdit )
  67. COMMAND_HANDLER (IDC_UNAME_PRE2K, EN_CHANGE, OnChangePre2kUName)
  68. COMMAND_HANDLER (IDC_EMAIL_ALIAS, EN_CHANGE, OnChangeAlias )
  69. COMMAND_HANDLER (IDC_UNAME, CBN_EDITCHANGE, OnChangeUName )
  70. COMMAND_HANDLER (IDC_UNAME, CBN_SELCHANGE, OnChangeUNameSel )
  71. COMMAND_HANDLER (IDC_EMAIL_CHECKBOX,BN_CLICKED, OnEmailClicked )
  72. CHAIN_MSG_MAP (CPropertyPageImpl<CAcctPage>)
  73. END_MSG_MAP()
  74. LRESULT OnInitDialog ( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled );
  75. LRESULT OnDestroy ( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled );
  76. LRESULT OnChangeEdit ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  77. LRESULT OnChangeUName ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  78. LRESULT OnChangeUNameSel ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  79. LRESULT OnChangePre2kUName ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  80. LRESULT OnChangeAlias ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  81. LRESULT OnEmailClicked ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  82. };
  83. #endif // _CACCTP_H