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
52 lines
1.4 KiB
// 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_
|