Source code of Windows XP (NT5)
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.

91 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. faxsnapin.h
  5. Abstract:
  6. This header is the root ATL class for the fax snapin,
  7. and contains misc junk. This was originally generated by
  8. VC++. It inherits it's implementation of IComponentData from
  9. faxcompd.h.
  10. Environment:
  11. WIN32 User Mode
  12. Author:
  13. Darwin Ouyang (t-darouy) 30-Sept-1997
  14. --*/
  15. // FaxSnapin.h : Declaration of the CFaxSnapin
  16. #ifndef __FAXSNAPIN_H_
  17. #define __FAXSNAPIN_H_
  18. #include "resource.h" // main symbols
  19. #include "faxadmin.h"
  20. #include "faxcomp.h" // IComponent
  21. #include "faxcompd.h" // IComponentData
  22. #include "faxpersist.h" // IPersistStream
  23. #include "faxproppg.h" // IExtendPropertyPage
  24. #include "faxconmenu.h" // IExtendContextMenu
  25. #include "faxconbar.h"
  26. #include "faxdataobj.h" // IDataObject
  27. #include "faxshelp.h" // ISnapinHelp
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CFaxSnapin
  30. class ATL_NO_VTABLE CFaxSnapin :
  31. public CComObjectRootEx<CComSingleThreadModel>,
  32. public CComCoClass<CFaxSnapin, &CLSID_FaxSnapin>,
  33. public IFaxSnapin,
  34. public CFaxComponentData,
  35. public CFaxPersistStream,
  36. public CFaxExtendPropertySheet,
  37. public CFaxExtendContextMenu,
  38. public CFaxExtendControlbar,
  39. public CFaxSnapinHelp,
  40. public CFaxSnapinTopic
  41. {
  42. public:
  43. CFaxSnapin()
  44. {
  45. DebugPrint(( TEXT("FaxSnapin Created") ));
  46. CFaxExtendContextMenu::m_pFaxSnapin = this;
  47. CFaxExtendPropertySheet::m_pFaxSnapin = this;
  48. CFaxPersistStream::m_pFaxSnapin = this;
  49. CFaxExtendControlbar::m_pFaxSnapin = this;
  50. CFaxSnapinHelp::m_pFaxSnapin = this;
  51. CFaxSnapinTopic::m_pFaxSnapin = this;
  52. }
  53. ~CFaxSnapin()
  54. {
  55. DebugPrint(( TEXT("FaxSnapin Destroyed") ));
  56. }
  57. DECLARE_REGISTRY_RESOURCEID(IDR_FAXSNAPIN)
  58. DECLARE_NOT_AGGREGATABLE(CFaxSnapin)
  59. BEGIN_COM_MAP(CFaxSnapin)
  60. COM_INTERFACE_ENTRY(IFaxSnapin)
  61. COM_INTERFACE_ENTRY(IComponentData)
  62. COM_INTERFACE_ENTRY(IPersistStream)
  63. COM_INTERFACE_ENTRY(IExtendPropertySheet)
  64. COM_INTERFACE_ENTRY(IExtendContextMenu)
  65. COM_INTERFACE_ENTRY(IExtendControlbar)
  66. COM_INTERFACE_ENTRY(ISnapinHelp)
  67. COM_INTERFACE_ENTRY(IDisplayHelp)
  68. END_COM_MAP()
  69. // IFaxSnapin
  70. public:
  71. };
  72. #endif //__FAXSNAPIN_H_