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.

69 lines
1.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. AcsSnapA.h
  7. Defines the ACS Admin Snapin's About object
  8. FILE HISTORY:
  9. 11/03/97 Wei Jiang Created
  10. */
  11. // ACSSnapA.h : Declaration of the CACSSnapAbout
  12. #ifndef __ACSSNAPABOUT_H_
  13. #define __ACSSNAPABOUT_H_
  14. #include "resource.h" // main symbols
  15. #include "acscomp.h"
  16. #define COLORREF_PINK 0x00FF00FF
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CACSSnapAbout
  19. class ATL_NO_VTABLE CACSSnapAbout :
  20. public CAbout,
  21. public CComCoClass<CACSSnapAbout, &CLSID_ACSSnapAbout>
  22. {
  23. public:
  24. CACSSnapAbout()
  25. {
  26. };
  27. virtual ~CACSSnapAbout() {
  28. };
  29. DECLARE_REGISTRY(CACSSnapAbout,
  30. _T("ACSSnapin.About.1"),
  31. _T("ACSSnapin.About"),
  32. IDS_SNAPIN_DESC,
  33. THREADFLAGS_BOTH)
  34. BEGIN_COM_MAP(CACSSnapAbout)
  35. COM_INTERFACE_ENTRY(ISnapinAbout) // Must have one static entry
  36. COM_INTERFACE_ENTRY_CHAIN(CAbout) // chain to the base class
  37. END_COM_MAP()
  38. // IACSSnapAbout
  39. public:
  40. DECLARE_NOT_AGGREGATABLE(CACSSnapAbout)
  41. // these must be overridden to provide values to the base class
  42. protected:
  43. virtual UINT GetAboutDescriptionId() { return IDS_ABOUT_DESCRIPTION; }
  44. virtual UINT GetAboutProviderId() { return IDS_ABOUT_PROVIDER; }
  45. virtual UINT GetAboutVersionId() { return IDS_ABOUT_VERSION; }
  46. virtual UINT GetAboutIconId() { return IDI_ACS_SNAPIN; }
  47. virtual UINT GetSmallRootId() { return IDB_SMALLACS; }
  48. virtual UINT GetSmallOpenRootId() { return IDB_SMALLACSOPEN; }
  49. virtual UINT GetLargeRootId() { return IDB_LARGEACS; }
  50. virtual COLORREF GetLargeColorMask() { return (COLORREF) COLORREF_PINK; }
  51. };
  52. #endif //__ACSSNAPABOUT_H_