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.

116 lines
3.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : ppFaxServerGeneral.h //
  3. // //
  4. // DESCRIPTION : Fax Server general prop page header file //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Oct 25 1999 yossg created //
  10. // Nov 22 1999 yossg Call RPC func //
  11. // Mar 15 2000 yossg New design add controls //
  12. // Mar 20 2000 yossg Add activity notification //
  13. // //
  14. // Copyright (C) 1999 - 2000 Microsoft Corporation All Rights Reserved //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #ifndef _PP_FAXSERVER_GENERAL_H_
  17. #define _PP_FAXSERVER_GENERAL_H_
  18. #include "proppageex.h"
  19. const int WM_ACTIVITY_STATUS_CHANGES = WM_USER + 2;
  20. class CFaxServer;
  21. class CFaxServerNode;
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CppFaxServerGeneral dialog
  24. class CppFaxServerGeneral : public CPropertyPageExImpl<CppFaxServerGeneral>
  25. {
  26. public:
  27. //
  28. // Construction
  29. //
  30. CppFaxServerGeneral(
  31. LONG_PTR hNotificationHandle,
  32. CSnapInItem *pNode,
  33. BOOL bOwnsNotificationHandle,
  34. HINSTANCE hInst);
  35. //
  36. // Destraction
  37. //
  38. ~CppFaxServerGeneral();
  39. enum { IDD = IDD_FAXSERVER_GENERAL };
  40. BEGIN_MSG_MAP(CppFaxServerGeneral)
  41. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  42. MESSAGE_HANDLER( WM_ACTIVITY_STATUS_CHANGES, OnActivityStatusChange )
  43. COMMAND_HANDLER( IDC_SUBMISSION_CHECK, BN_CLICKED, SetApplyButton )
  44. COMMAND_HANDLER( IDC_TRANSSMI_CHECK, BN_CLICKED, SetApplyButton )
  45. COMMAND_HANDLER( IDC_RECEPTION_CHECK, BN_CLICKED, SetApplyButton )
  46. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  47. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  48. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxServerGeneral>)
  49. END_MSG_MAP()
  50. //
  51. // Dialog's Handlers
  52. //
  53. HRESULT InitRPC( );
  54. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  55. LRESULT OnActivityStatusChange( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  56. BOOL OnApply();
  57. HRESULT SetProps(int *pCtrlFocus);
  58. HRESULT PreApply(int *pCtrlFocus);
  59. private:
  60. //
  61. // Configuration Structure members
  62. //
  63. FAX_VERSION m_FaxVersionConfig;
  64. FAX_SERVER_ACTIVITY m_FaxServerActivityConfig;
  65. DWORD m_dwQueueStates;
  66. //
  67. // Handles
  68. //
  69. CFaxServerNode * m_pParentNode;
  70. HANDLE m_hActivityNotification; // Notification registration handle
  71. LONG_PTR m_lpNotifyHandle;
  72. BOOL m_fIsDialogInitiated;
  73. BOOL m_fIsDirty;
  74. //
  75. // Controls
  76. //
  77. CEdit m_QueuedEdit;
  78. CEdit m_OutgoingEdit;
  79. CEdit m_IncomingEdit;
  80. HRESULT UpdateActivityCounters();
  81. LRESULT SetApplyButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  82. //
  83. // Help
  84. //
  85. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  86. };
  87. #endif // _PP_FAXSERVER_GENERAL_H_