home *** CD-ROM | disk | FTP | other *** search
- // 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.
-
-
- #include "stdafx.h"
- #include "smilectl.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmileCtl
-
- IMPLEMENT_DYNCREATE(CSmileCtl, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmileCtl properties
-
- OLE_COLOR CSmileCtl::GetBackColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetBackColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
- }
-
- short CSmileCtl::GetBorderStyle()
- {
- short result;
- GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetBorderStyle(short propVal)
- {
- SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
- }
-
- LPFONTDISP CSmileCtl::GetFont()
- {
- LPFONTDISP result;
- GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetFont(LPFONTDISP propVal)
- {
- SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
- }
-
- OLE_COLOR CSmileCtl::GetForeColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetForeColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
- }
-
- BSTR CSmileCtl::GetCaption()
- {
- BSTR result;
- GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetCaption(LPCTSTR propVal)
- {
- SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
- }
-
- BOOL CSmileCtl::GetSad()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CSmileCtl::SetSad(BOOL propVal)
- {
- SetProperty(0x1, VT_BOOL, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmileCtl operations
-
- void CSmileCtl::Beep()
- {
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CSmileCtl::Wink(BOOL bWink)
- {
- static BYTE parms[] = VTS_BOOL;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms, bWink);
- }
-
- void CSmileCtl::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-