home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / smiley / smilectl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  60 lines

  1. #ifndef __SMILECTL_H__
  2. #define __SMILECTL_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CSmileCtl wrapper class
  11.  
  12. class CSmileCtl : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CSmileCtl)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0x175cb003, 0xbeed, 0x11ce, { 0x96, 0x11, 0x0, 0xaa, 0x0, 0x4a, 0x75, 0xcf } };
  21.         return clsid;
  22.     }
  23.     virtual BOOL Create(LPCTSTR lpszClassName,
  24.         LPCTSTR lpszWindowName, DWORD dwStyle,
  25.         const RECT& rect,
  26.         CWnd* pParentWnd, UINT nID,
  27.         CCreateContext* pContext = NULL)
  28.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  29.  
  30.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  31.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  32.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  33.         BSTR bstrLicKey = NULL)
  34.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  35.         pPersist, bStorage, bstrLicKey); }
  36.  
  37. // Attributes
  38. public:
  39.     OLE_COLOR GetBackColor();
  40.     void SetBackColor(OLE_COLOR);
  41.     short GetBorderStyle();
  42.     void SetBorderStyle(short);
  43.     LPFONTDISP GetFont();
  44.     void SetFont(LPFONTDISP);
  45.     OLE_COLOR GetForeColor();
  46.     void SetForeColor(OLE_COLOR);
  47.     BSTR GetCaption();
  48.     void SetCaption(LPCTSTR);
  49.     BOOL GetSad();
  50.     void SetSad(BOOL);
  51.  
  52. // Operations
  53. public:
  54.     void Beep();
  55.     void Wink(BOOL bWink);
  56.     void AboutBox();
  57. };
  58.  
  59. #endif // __SMILECTL_H__
  60.