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.

118 lines
3.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : ppFaxServerLogging.h //
  3. // //
  4. // DESCRIPTION : Fax Server general 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_LOGGING_H_
  17. #define _PP_FAXSERVER_LOGGING_H_
  18. #include <proppageex.h>
  19. class CFaxServerNode;
  20. class CFaxServer;
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CppFaxServerLogging dialog
  23. class CppFaxServerLogging : public CPropertyPageExImpl<CppFaxServerLogging>
  24. {
  25. public:
  26. //
  27. // Constructor
  28. //
  29. CppFaxServerLogging(
  30. LONG_PTR hNotificationHandle,
  31. CSnapInItem *pNode,
  32. BOOL fIsLocalServer,
  33. HINSTANCE hInst);
  34. //
  35. // Destructor
  36. //
  37. ~CppFaxServerLogging();
  38. enum { IDD = IDD_FAXSERVER_LOGGING };
  39. BEGIN_MSG_MAP(CppFaxServerLogging)
  40. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  41. COMMAND_HANDLER( IDC_LOG_BROWSE_BUTTON, BN_CLICKED, BrowseForFile )
  42. COMMAND_HANDLER( IDC_INCOMING_LOG_CHECK, BN_CLICKED, OnCheckboxClicked )
  43. COMMAND_HANDLER( IDC_OUTGOING_LOG_CHECK, BN_CLICKED, OnCheckboxClicked )
  44. COMMAND_HANDLER( IDC_LOG_FILE_EDIT, EN_CHANGE, OnTextChanged )
  45. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  46. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  47. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxServerLogging>)
  48. END_MSG_MAP()
  49. //
  50. // Dialog's Handlers and events.
  51. //
  52. HRESULT InitRPC( );
  53. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  54. BOOL OnApply();
  55. HRESULT SetProps(int *pCtrlFocus);
  56. HRESULT PreApply(int *pCtrlFocus, UINT * puIds);
  57. private:
  58. //
  59. // Control members
  60. //
  61. CEdit m_LogFileBox;
  62. BOOL m_fIsDialogInitiated;
  63. BOOL m_fIsDirty;
  64. BOOL m_fIsLocalServer;
  65. //
  66. // Config Structure member
  67. //
  68. PFAX_ACTIVITY_LOGGING_CONFIG m_pFaxActLogConfig;
  69. CComBSTR m_bstrLastGoodFolder;
  70. //
  71. // Handles
  72. //
  73. CFaxServerNode * m_pParentNode;
  74. //
  75. // Browse
  76. //
  77. BOOL BrowseForFile(WORD wNotifyCode, WORD wID, HWND hwndDlg, BOOL& bHandled);
  78. //
  79. // Event methods
  80. //
  81. LRESULT SetApplyButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  82. void EnableDataBasePath(BOOL fState);
  83. BOOL AllReadyToApply(BOOL fSilent, int *pCtrlFocus = NULL, UINT *pIds = NULL);
  84. LRESULT OnTextChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  85. LRESULT OnCheckboxClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  86. //
  87. // Help
  88. //
  89. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  90. };
  91. #endif // _PP_FAXSERVER_LOGGING_H_