// About.h : Declaration of the CSnapInAbout #ifndef __ABOUT_H_ #define __ABOUT_H_ #include "resource.h" // main symbols #include "atlgdi.h" ///////////////////////////////////////////////////////////////////////////// // CSnapInAbout class ATL_NO_VTABLE CSnapInAbout : public CComObjectRootEx, public CComCoClass, public ISnapinAbout { public: CSnapInAbout() : m_hIcon(NULL) {} DECLARE_REGISTRY_RESOURCEID(IDR_ABOUT) DECLARE_NOT_AGGREGATABLE(CSnapInAbout) BEGIN_COM_MAP(CSnapInAbout) COM_INTERFACE_ENTRY(ISnapinAbout) END_COM_MAP() // // ISnapinAbout methods // public: STDMETHOD(GetSnapinDescription)(LPOLESTR* lpDescription); STDMETHOD(GetProvider)(LPOLESTR* lpName); STDMETHOD(GetSnapinVersion)(LPOLESTR* lpVersion); STDMETHOD(GetSnapinImage)(HICON* hAppIcon); STDMETHOD(GetStaticFolderImage)(HBITMAP* hSmallImage, HBITMAP* hSmallImageOpen, HBITMAP* hLargeImage, COLORREF* cLargeMask); private: HRESULT GetString(UINT nID, LPOLESTR* psz); HICON m_hIcon; CBitmap m_bmpSmallImage; CBitmap m_bmpSmallImageOpen; CBitmap m_bmpLargeImage; }; #endif //__ABOUT_H_