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.

87 lines
2.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : CppFaxProviderGeneral.h //
  3. // //
  4. // DESCRIPTION : provider's property page header file. //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Jan 31 2000 yossg Created //
  10. // //
  11. // Copyright (C) 1999 - 2000 Microsoft Corporation All Rights Reserved //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef _PP_FAXPROVIDERGENERAL_H_
  14. #define _PP_FAXPROVIDERGENERAL_H_
  15. #include "Provider.h"
  16. #include "proppageex.h"
  17. class CFaxProviderNode;
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CppFaxProvider dialog
  20. class CppFaxProvider : public CPropertyPageExImpl<CppFaxProvider>
  21. {
  22. public:
  23. //
  24. // Constructor
  25. //
  26. CppFaxProvider(
  27. long hNotificationHandle,
  28. CSnapInItem *pNode,
  29. BOOL bOwnsNotificationHandle,
  30. HINSTANCE hInst);
  31. //
  32. // Destructor
  33. //
  34. ~CppFaxProvider();
  35. enum { IDD = IDD_FAXPROVIDER_GENERAL };
  36. BEGIN_MSG_MAP(CppFaxProvider)
  37. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  38. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  39. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  40. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CppFaxProvider>)
  41. END_MSG_MAP()
  42. LRESULT OnInitDialog( UINT uiMsg, WPARAM wParam, LPARAM lParam, BOOL& fHandled );
  43. BOOL OnApply();
  44. HRESULT Init(CComBSTR bstrName, CComBSTR bstrStatus, CComBSTR bstrVersion, CComBSTR bstrPath);
  45. private:
  46. //
  47. // Handles
  48. //
  49. LONG_PTR m_lpNotifyHandle;
  50. LRESULT SetApplyButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  51. //
  52. // Members
  53. //
  54. CComBSTR m_bstrName;
  55. CComBSTR m_bstrStatus;
  56. CComBSTR m_bstrVersion;
  57. CComBSTR m_bstrPath;
  58. //
  59. // Help
  60. //
  61. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  62. };
  63. #endif // _PP_FAXPROVIDERGENERAL_H_