Windows2003-3790/admin/cys/servmgmt/snapins/manager/about.h

53 lines
1.4 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
// 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<CComSingleThreadModel>,
public CComCoClass<CSnapInAbout, &CLSID_BOMSnapInAbout>,
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_