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.

52 lines
1.4 KiB

  1. // About.h : Declaration of the CSnapInAbout
  2. #ifndef __ABOUT_H_
  3. #define __ABOUT_H_
  4. #include "resource.h" // main symbols
  5. #include "atlgdi.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CSnapInAbout
  8. class ATL_NO_VTABLE CSnapInAbout :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CSnapInAbout, &CLSID_BOMSnapInAbout>,
  11. public ISnapinAbout
  12. {
  13. public:
  14. CSnapInAbout() : m_hIcon(NULL) {}
  15. DECLARE_REGISTRY_RESOURCEID(IDR_ABOUT)
  16. DECLARE_NOT_AGGREGATABLE(CSnapInAbout)
  17. BEGIN_COM_MAP(CSnapInAbout)
  18. COM_INTERFACE_ENTRY(ISnapinAbout)
  19. END_COM_MAP()
  20. //
  21. // ISnapinAbout methods
  22. //
  23. public:
  24. STDMETHOD(GetSnapinDescription)(LPOLESTR* lpDescription);
  25. STDMETHOD(GetProvider)(LPOLESTR* lpName);
  26. STDMETHOD(GetSnapinVersion)(LPOLESTR* lpVersion);
  27. STDMETHOD(GetSnapinImage)(HICON* hAppIcon);
  28. STDMETHOD(GetStaticFolderImage)(HBITMAP* hSmallImage,
  29. HBITMAP* hSmallImageOpen,
  30. HBITMAP* hLargeImage,
  31. COLORREF* cLargeMask);
  32. private:
  33. HRESULT GetString(UINT nID, LPOLESTR* psz);
  34. HICON m_hIcon;
  35. CBitmap m_bmpSmallImage;
  36. CBitmap m_bmpSmallImageOpen;
  37. CBitmap m_bmpLargeImage;
  38. };
  39. #endif //__ABOUT_H_