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 "pvbutton.h"
-
- // Dispatch interfaces referenced by this interface
- #include "Font.h"
- #include "Picture.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVButton
-
- IMPLEMENT_DYNCREATE(CPVButton, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVButton properties
-
- CString CPVButton::GetCaption()
- {
- CString result;
- GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CPVButton::SetCaption(LPCTSTR propVal)
- {
- SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
- }
-
- COleFont CPVButton::GetFont()
- {
- LPDISPATCH pDispatch;
- GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
- return COleFont(pDispatch);
- }
-
- void CPVButton::SetFont(LPDISPATCH propVal)
- {
- SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
- }
-
- BOOL CPVButton::GetEnabled()
- {
- BOOL result;
- GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CPVButton::SetEnabled(BOOL propVal)
- {
- SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
- }
-
- OLE_HANDLE CPVButton::GetHWnd()
- {
- OLE_HANDLE result;
- GetProperty(DISPID_HWND, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetHWnd(OLE_HANDLE propVal)
- {
- SetProperty(DISPID_HWND, VT_I4, propVal);
- }
-
- short CPVButton::GetPicture()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
-
- void CPVButton::SetPicture(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
-
- CString CPVButton::Get_Caption()
- {
- CString result;
- GetProperty(0x0, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CPVButton::Set_Caption(LPCTSTR propVal)
- {
- SetProperty(0x0, VT_BSTR, propVal);
- }
-
- short CPVButton::GetSpecialEffect()
- {
- short result;
- GetProperty(0x2, VT_I2, (void*)&result);
- return result;
- }
-
- void CPVButton::SetSpecialEffect(short propVal)
- {
- SetProperty(0x2, VT_I2, propVal);
- }
-
- BOOL CPVButton::GetDefaultButton()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CPVButton::SetDefaultButton(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
-
- BOOL CPVButton::GetRepeatButton()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CPVButton::SetRepeatButton(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
-
- unsigned long CPVButton::GetColorCodeColor()
- {
- unsigned long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetColorCodeColor(unsigned long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
-
- CPicture CPVButton::GetCustomPicture()
- {
- LPDISPATCH pDispatch;
- GetProperty(0xa, VT_DISPATCH, (void*)&pDispatch);
- return CPicture(pDispatch);
- }
-
- void CPVButton::SetCustomPicture(LPDISPATCH propVal)
- {
- SetProperty(0xa, VT_DISPATCH, propVal);
- }
-
- OLE_COLOR CPVButton::GetBackColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetBackColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
- }
-
- OLE_COLOR CPVButton::GetForeColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetForeColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
- }
-
- unsigned long CPVButton::GetLightShadow()
- {
- unsigned long result;
- GetProperty(0x6, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetLightShadow(unsigned long propVal)
- {
- SetProperty(0x6, VT_I4, propVal);
- }
-
- unsigned long CPVButton::GetDarkShadow()
- {
- unsigned long result;
- GetProperty(0x7, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetDarkShadow(unsigned long propVal)
- {
- SetProperty(0x7, VT_I4, propVal);
- }
-
- unsigned long CPVButton::GetLightHighlight()
- {
- unsigned long result;
- GetProperty(0x8, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetLightHighlight(unsigned long propVal)
- {
- SetProperty(0x8, VT_I4, propVal);
- }
-
- unsigned long CPVButton::GetDarkHighlight()
- {
- unsigned long result;
- GetProperty(0x9, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVButton::SetDarkHighlight(unsigned long propVal)
- {
- SetProperty(0x9, VT_I4, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVButton operations
-
- void CPVButton::ResetColorScheme()
- {
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CPVButton::SetRedraw(BOOL bRedraw)
- {
- static BYTE parms[] =
- VTS_BOOL;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- bRedraw);
- }
-
- void CPVButton::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-