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.

145 lines
4.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : ppFaxServerInbox.h //
  3. // //
  4. // DESCRIPTION : Fax Server Inbox prop page header file //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Oct 27 1999 yossg Created //
  10. // Nov 3 1999 yossg OnInitDialog, SetProps //
  11. // Nov 15 1999 yossg Call RPC func //
  12. // Dec 10 2000 yossg Update Windows XP //
  13. // //
  14. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #ifndef _PP_FAXSERVER_INBOX_H_
  17. #define _PP_FAXSERVER_INBOX_H_
  18. #include "MyCtrls.h"
  19. #include <windows.h>
  20. #include <proppageex.h>
  21. class CFaxServerNode;
  22. class CFaxServer;
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CppFaxServerInbox dialog
  25. class CppFaxServerInbox : public CPropertyPageExImpl<CppFaxServerInbox>
  26. {
  27. public:
  28. //
  29. // Constructor
  30. //
  31. CppFaxServerInbox(
  32. LONG_PTR hNotificationHandle,
  33. CSnapInItem *pNode,
  34. BOOL fIsLocalServer,
  35. HINSTANCE hInst);
  36. //
  37. // Destructor
  38. //
  39. ~CppFaxServerInbox();
  40. enum { IDD = IDD_FAXSERVER_INBOX_ARCHIVE };
  41. BEGIN_MSG_MAP(CppFaxServerInbox)
  42. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  43. COMMAND_HANDLER( IDC_INBOX_BROWSE_BUTTON, BN_CLICKED, BrowseForDirectory)
  44. COMMAND_HANDLER( IDC_TO_ARCHIVE_CHECK, BN_CLICKED, ToArchiveCheckboxClicked)
  45. COMMAND_HANDLER( IDC_INBOX_FOLDER_EDIT, EN_CHANGE, EditChanged )
  46. COMMAND_HANDLER( IDC_GENERATE_WARNING_CHECK, BN_CLICKED, GenerateEventLogCheckboxClicked)
  47. COMMAND_HANDLER( IDC_LOW_EDIT, EN_CHANGE, EditChanged )
  48. COMMAND_HANDLER( IDC_HIGH_EDIT, EN_CHANGE, EditChanged )
  49. COMMAND_HANDLER( IDC_AUTODEL_CHECK, BN_CLICKED, AutoDelCheckboxClicked)
  50. COMMAND_HANDLER( IDC_AUTODEL_EDIT, EN_CHANGE, EditChanged )
  51. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  52. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  53. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxServerInbox>)
  54. END_MSG_MAP()
  55. //
  56. // Dialog's Handler and events.
  57. //
  58. HRESULT InitRPC( );
  59. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  60. BOOL OnApply();
  61. HRESULT SetProps(int *pCtrlFocus, UINT * puIds);
  62. HRESULT PreApply(int *pCtrlFocus, UINT * puIds);
  63. private:
  64. //
  65. // Control members
  66. //
  67. CEdit m_FolderBox;
  68. CButton m_BrowseButton;
  69. CMyUpDownCtrl m_HighWatermarkSpin;
  70. CMyUpDownCtrl m_LowWatermarkSpin;
  71. CMyUpDownCtrl m_AutoDelSpin;
  72. CEdit m_HighWatermarkBox;
  73. CEdit m_LowWatermarkBox;
  74. CEdit m_AutoDelBox;
  75. //
  76. // Boolean members
  77. //
  78. BOOL m_fAllReadyToApply;
  79. BOOL m_fIsDialogInitiated;
  80. BOOL m_fIsDirty;
  81. BOOL m_fIsLocalServer;
  82. //
  83. // Config Structure member
  84. //
  85. PFAX_ARCHIVE_CONFIG m_pFaxArchiveConfig ;
  86. CComBSTR m_bstrLastGoodFolder;
  87. DWORD m_dwLastGoodSizeQuotaHighWatermark;
  88. DWORD m_dwLastGoodSizeQuotaLowWatermark;
  89. //
  90. // Handles
  91. //
  92. CFaxServerNode * m_pParentNode;
  93. //
  94. // Browse
  95. //
  96. BOOL BrowseForDirectory(WORD wNotifyCode, WORD wID, HWND hwndDlg, BOOL& bHandled);
  97. //
  98. // Event methods
  99. //
  100. LRESULT ToArchiveCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  101. LRESULT GenerateEventLogCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  102. LRESULT AutoDelCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  103. LRESULT EditChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  104. BOOL AllReadyToApply(BOOL fSilent, int *pCtrlFocus = NULL, UINT *pIds = NULL);
  105. //
  106. // Help
  107. //
  108. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  109. };
  110. #endif // _PP_FAXSERVER_INBOX_H_