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.

99 lines
3.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : ppFaxServerEvents.h //
  3. // //
  4. // DESCRIPTION : Fax Server Events prop page header file //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Oct 27 1999 yossg created //
  10. // //
  11. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef _PP_FAXSERVER_EVENTS_H_
  14. #define _PP_FAXSERVER_EVENTS_H_
  15. #include <proppageex.h>
  16. class CFaxServerNode;
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CppFaxServerEvents dialog
  19. class CppFaxServerEvents : public CPropertyPageExImpl<CppFaxServerEvents>
  20. {
  21. public:
  22. //
  23. // Constructor
  24. //
  25. CppFaxServerEvents(
  26. LONG_PTR hNotificationHandle,
  27. CSnapInItem *pNode,
  28. BOOL bOwnsNotificationHandle,
  29. HINSTANCE hInst);
  30. //
  31. // Destructor
  32. //
  33. ~CppFaxServerEvents();
  34. enum { IDD = IDD_FAXSERVER_EVENTS };
  35. BEGIN_MSG_MAP(CppFaxServerEvents)
  36. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  37. MESSAGE_HANDLER( WM_HSCROLL, SliderMoved )
  38. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  39. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  40. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxServerEvents>)
  41. END_MSG_MAP()
  42. //
  43. // Dialog's Handler and events.
  44. //
  45. HRESULT InitRPC( );
  46. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  47. BOOL OnApply();
  48. HRESULT SetProps(int *pCtrlFocus);
  49. HRESULT PreApply(int *pCtrlFocus);
  50. private:
  51. //
  52. // Control members
  53. //
  54. CTrackBarCtrl m_InboundErrSlider;
  55. CTrackBarCtrl m_OutboundErrSlider;
  56. CTrackBarCtrl m_InitErrSlider;
  57. CTrackBarCtrl m_GeneralErrSlider;
  58. //
  59. // Config Structure member
  60. //
  61. PFAX_LOG_CATEGORY m_pFaxLogCategories;
  62. //
  63. // Handles and flags
  64. //
  65. CFaxServerNode * m_pParentNode;
  66. BOOL m_fIsDialogInitiated;
  67. BOOL m_fIsDirty;
  68. //
  69. // Event methods
  70. //
  71. LRESULT SliderMoved( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled);
  72. //
  73. // Help
  74. //
  75. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  76. };
  77. #endif // _PP_FAXSERVER_EVENTS_H_