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.

132 lines
4.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // DESCRIPTION : Fax Server Outbox prop page header file //
  4. // //
  5. // AUTHOR : yossg //
  6. // //
  7. // HISTORY : //
  8. // Oct 27 1999 yossg created //
  9. // Nov 3 1999 yossg OnInitDialog, SetProps //
  10. // Nov 15 1999 yossg Call RPC func //
  11. // Apr 24 2000 yossg Add discount rate time //
  12. // //
  13. // Copyright (C) 1999 - 2000 Microsoft Corporation All Rights Reserved //
  14. /////////////////////////////////////////////////////////////////////////////
  15. #ifndef _PP_FAXSERVER_OUTBOX_H_
  16. #define _PP_FAXSERVER_OUTBOX_H_
  17. #include "MyCtrls.h"
  18. #include <proppageex.h>
  19. class CFaxServerNode;
  20. class CFaxServer;
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CppFaxServerOutbox dialog
  23. class CppFaxServerOutbox : public CPropertyPageExImpl<CppFaxServerOutbox>
  24. {
  25. public:
  26. //
  27. // Constructor
  28. //
  29. CppFaxServerOutbox(
  30. LONG_PTR hNotificationHandle,
  31. CSnapInItem *pNode,
  32. BOOL bOwnsNotificationHandle,
  33. HINSTANCE hInst);
  34. //
  35. // Destructor
  36. //
  37. ~CppFaxServerOutbox();
  38. enum { IDD = IDD_FAXSERVER_OUTBOX };
  39. BEGIN_MSG_MAP(CppFaxServerOutbox)
  40. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  41. COMMAND_HANDLER( IDC_BRANDING_CHECK, BN_CLICKED, CheckboxClicked )
  42. COMMAND_HANDLER( IDC_ALLOW_PERSONAL_CHECK, BN_CLICKED, CheckboxClicked )
  43. COMMAND_HANDLER( IDC_TSID_CHECK, BN_CLICKED, CheckboxClicked )
  44. COMMAND_HANDLER( IDC_RETRIES_EDIT, EN_CHANGE, EditBoxChanged )
  45. COMMAND_HANDLER( IDC_RETRYDELAY_EDIT, EN_CHANGE, EditBoxChanged )
  46. COMMAND_HANDLER( IDC_DELETE_CHECK, BN_CLICKED, AutoDelCheckboxClicked)
  47. COMMAND_HANDLER( IDC_DAYS_EDIT, EN_CHANGE, EditBoxChanged )
  48. NOTIFY_HANDLER ( IDC_DISCOUNT_START_TIME, DTN_DATETIMECHANGE, OnTimeChange )
  49. NOTIFY_HANDLER ( IDC_DISCOUNT_STOP_TIME, DTN_DATETIMECHANGE, OnTimeChange )
  50. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  51. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  52. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxServerOutbox>)
  53. END_MSG_MAP()
  54. //
  55. // Dialog's Handler and events.
  56. //
  57. HRESULT InitRPC( );
  58. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  59. BOOL OnApply();
  60. HRESULT SetProps(int *pCtrlFocus);
  61. HRESULT PreApply(int *pCtrlFocus, UINT * puIds);
  62. private:
  63. //
  64. // Control members
  65. //
  66. CMyUpDownCtrl m_RetriesSpin;
  67. CMyUpDownCtrl m_RetryDelaySpin;
  68. CMyUpDownCtrl m_DaysSpin;
  69. CEdit m_RetriesBox;
  70. CEdit m_RetryDelayBox;
  71. CEdit m_DaysBox;
  72. CDateTimePickerCtrl m_StartTimeCtrl;
  73. CDateTimePickerCtrl m_StopTimeCtrl;
  74. //
  75. // Boolean members
  76. //
  77. BOOL m_fAllReadyToApply;
  78. BOOL m_fIsDialogInitiated;
  79. BOOL m_fIsDirty;
  80. //
  81. // Config Structure member
  82. //
  83. PFAX_OUTBOX_CONFIG m_pFaxOutboxConfig;
  84. //
  85. // Handles
  86. //
  87. CFaxServerNode * m_pParentNode;
  88. //
  89. // Event methods
  90. //
  91. LRESULT CheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  92. LRESULT EditBoxChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  93. LRESULT AutoDelCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  94. LRESULT OnTimeChange(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  95. BOOL AllReadyToApply(BOOL fSilent, int *pCtrlFocus = NULL, UINT *pIds = NULL);
  96. //
  97. // Help
  98. //
  99. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  100. };
  101. #endif // _PP_FAXSERVER_OUTBOX_H_