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.

73 lines
2.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : DlgNewGroup.h //
  3. // //
  4. // DESCRIPTION : Header file for the CDlgNewFaxOutboundGroup class. //
  5. // The class implement the dialog for new Group. //
  6. // //
  7. // AUTHOR : yossg //
  8. // //
  9. // HISTORY : //
  10. // Jan 3 2000 yossg Create //
  11. // //
  12. // Copyright (C) 2000 Microsoft Corporation All Rights Reserved //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef DLGNEWOUTGROUP_H_INCLUDED
  15. #define DLGNEWOUTGROUP_H_INCLUDED
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CDlgNewFaxOutboundGroup
  18. class CFaxServer;
  19. class CDlgNewFaxOutboundGroup :
  20. public CDialogImpl<CDlgNewFaxOutboundGroup>
  21. {
  22. public:
  23. CDlgNewFaxOutboundGroup(CFaxServer * pFaxServer):m_pFaxServer(pFaxServer)
  24. {
  25. ATLASSERT(pFaxServer);
  26. }
  27. ~CDlgNewFaxOutboundGroup();
  28. enum { IDD = IDD_DLGNEWGROUP };
  29. BEGIN_MSG_MAP(CDlgNewFaxOutboundGroup)
  30. MESSAGE_HANDLER (WM_INITDIALOG, OnInitDialog)
  31. COMMAND_ID_HANDLER(IDOK, OnOK)
  32. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  33. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  34. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  35. COMMAND_HANDLER(IDC_GROUPNAME_EDIT, EN_CHANGE, OnTextChanged)
  36. END_MSG_MAP()
  37. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  38. LRESULT OnOK (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  39. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. LRESULT OnTextChanged (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  41. //
  42. // Help
  43. //
  44. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  45. private:
  46. //
  47. // Methods
  48. //
  49. VOID EnableOK(BOOL fEnable);
  50. CFaxServer * m_pFaxServer;
  51. //
  52. // Controls
  53. //
  54. CEdit m_GroupNameEdit;
  55. CComBSTR m_bstrGroupName;
  56. };
  57. #endif // DLGNEWOUTGROUP_H_INCLUDED