00001 #if !defined(AFX_IMAGE_H__9B270261_CDCA_11D3_8258_0020AF58A97B__INCLUDED_)
00002 #define AFX_IMAGE_H__9B270261_CDCA_11D3_8258_0020AF58A97B__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009
00010
00011
00012
00013
00014 class CPicture;
00015
00016
00017
00018
00019 class CImage : public CWnd
00020 {
00021 protected:
00022 DECLARE_DYNCREATE(CImage)
00023 public:
00024 CLSID const& GetClsid()
00025 {
00026 static CLSID const clsid
00027 = { 0x4c599241, 0x6926, 0x101b, { 0x99, 0x92, 0x0, 0x0, 0xb, 0x65, 0xc6, 0xf9 } };
00028 return clsid;
00029 }
00030 virtual BOOL Create(LPCTSTR lpszClassName,
00031 LPCTSTR lpszWindowName, DWORD dwStyle,
00032 const RECT& rect,
00033 CWnd* pParentWnd, UINT nID,
00034 CCreateContext* pContext = NULL)
00035 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
00036
00037 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
00038 const RECT& rect, CWnd* pParentWnd, UINT nID,
00039 CFile* pPersist = NULL, bool bStorage = false,
00040 BSTR bstrLicKey = NULL)
00041 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
00042 pPersist, bStorage, bstrLicKey); }
00043
00044
00045 public:
00046
00047
00048 public:
00049 void SetEnabled(bool bNewValue);
00050 bool GetEnabled();
00051 void SetMousePointer(long nNewValue);
00052 long GetMousePointer();
00053 void SetAutoSize(bool bNewValue);
00054 bool GetAutoSize();
00055 void SetBackColor(long nNewValue);
00056 long GetBackColor();
00057 void SetBackStyle(long nNewValue);
00058 long GetBackStyle();
00059 void SetBorderColor(long nNewValue);
00060 long GetBorderColor();
00061 void SetBorderStyle(long nNewValue);
00062 long GetBorderStyle();
00063 void SetPicture(LPDISPATCH newValue);
00064 void SetRefPicture(LPDISPATCH newValue);
00065 CPicture GetPicture();
00066 void SetMouseIcon(LPDISPATCH newValue);
00067 void SetRefMouseIcon(LPDISPATCH newValue);
00068 CPicture GetMouseIcon();
00069 void SetPictureSizeMode(long nNewValue);
00070 long GetPictureSizeMode();
00071 void SetPictureAlignment(long nNewValue);
00072 long GetPictureAlignment();
00073 void SetPictureTiling(bool bNewValue);
00074 bool GetPictureTiling();
00075 void SetSpecialEffect(long nNewValue);
00076 long GetSpecialEffect();
00077 };
00078
00079
00080
00081
00082 #endif // !defined(AFX_IMAGE_H__9B270261_CDCA_11D3_8258_0020AF58A97B__INCLUDED_)