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.

67 lines
1.5 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. About.h
  5. Abstract:
  6. Definition of the CAbout class.
  7. Author:
  8. Art Bragg [abragg] 12-Aug-1997
  9. Revision History:
  10. --*/
  11. #ifndef _ABOUT_H
  12. #define _ABOUT_H
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CAbout
  15. class ATL_NO_VTABLE CAbout :
  16. public ISnapinAbout, // Supplies information to the About Box
  17. public CComObjectRoot,
  18. public CComCoClass<CAbout,&CLSID_CAbout>
  19. {
  20. public:
  21. CAbout();
  22. virtual ~CAbout();
  23. BEGIN_COM_MAP(CAbout)
  24. COM_INTERFACE_ENTRY(ISnapinAbout)
  25. END_COM_MAP()
  26. DECLARE_NOT_AGGREGATABLE(CAbout)
  27. DECLARE_REGISTRY_RESOURCEID(IDR_About)
  28. // ISnapinAbout methods
  29. public:
  30. STDMETHOD(GetSnapinDescription)(LPOLESTR* lpDescription);
  31. STDMETHOD(GetProvider)(LPOLESTR* lpName);
  32. STDMETHOD(GetSnapinVersion)(LPOLESTR* lpVersion);
  33. STDMETHOD(GetSnapinImage)(HICON* hAppIcon);
  34. STDMETHOD(GetStaticFolderImage)(HBITMAP* hSmallImage,
  35. HBITMAP* hSmallImageOpen,
  36. HBITMAP* hLargeImage,
  37. COLORREF* cLargeMask);
  38. private:
  39. HRESULT AboutHelper(UINT nID, LPOLESTR* lpPtr);
  40. void DestroyBitmapObjects();
  41. void DestroyIconObject();
  42. // Data members
  43. private:
  44. HBITMAP m_hSmallImage;
  45. HBITMAP m_hLargeImage;
  46. HBITMAP m_hSmallImageOpen;
  47. HICON m_hAppIcon;
  48. };
  49. #endif