smilectl.h
资源名称:COM 原理与应用.rar [点击查看]
上传用户:biuytresa
上传日期:2007-12-07
资源大小:721k
文件大小:2k
源码类别:
DNA
开发平台:
Visual C++
- #ifndef __SMILECTL_H__
- #define __SMILECTL_H__
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- /////////////////////////////////////////////////////////////////////////////
- // CSmileCtl wrapper class
- class CSmileCtl : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CSmileCtl)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x175cb003, 0xbeed, 0x11ce, { 0x96, 0x11, 0x0, 0xaa, 0x0, 0x4a, 0x75, 0xcf } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName,
- LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect,
- CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey); }
- // Attributes
- public:
- OLE_COLOR GetBackColor();
- void SetBackColor(OLE_COLOR);
- short GetBorderStyle();
- void SetBorderStyle(short);
- LPFONTDISP GetFont();
- void SetFont(LPFONTDISP);
- OLE_COLOR GetForeColor();
- void SetForeColor(OLE_COLOR);
- BSTR GetCaption();
- void SetCaption(LPCTSTR);
- BOOL GetSad();
- void SetSad(BOOL);
- // Operations
- public:
- void Beep();
- void Wink(BOOL bWink);
- void AboutBox();
- };
- #endif // __SMILECTL_H__