Click here to Skip to main content
15,885,767 members
Articles / Desktop Programming / MFC

Pitch

Rate me:
Please Sign up or sign in to vote.
3.07/5 (9 votes)
9 Jun 20034 min read 99.7K   2K   40  
A music skill builder
// 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 "sspbctrl.h"

// Dispatch interfaces referenced by this interface
#include "picture.h"
#include "Font.h"

/////////////////////////////////////////////////////////////////////////////
// CSSPBCtrl

IMPLEMENT_DYNCREATE(CSSPBCtrl, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CSSPBCtrl properties

BOOL CSSPBCtrl::GetValue()
{
	BOOL result;
	GetProperty(0xc, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetValue(BOOL propVal)
{
	SetProperty(0xc, VT_BOOL, propVal);
}

CString CSSPBCtrl::GetFontName()
{
	CString result;
	GetProperty(0x1, VT_BSTR, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontName(LPCTSTR propVal)
{
	SetProperty(0x1, VT_BSTR, propVal);
}

float CSSPBCtrl::GetFontSize()
{
	float result;
	GetProperty(0x2, VT_R4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontSize(float propVal)
{
	SetProperty(0x2, VT_R4, propVal);
}

BOOL CSSPBCtrl::GetFontBold()
{
	BOOL result;
	GetProperty(0x3, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontBold(BOOL propVal)
{
	SetProperty(0x3, VT_BOOL, propVal);
}

BOOL CSSPBCtrl::GetFontItalic()
{
	BOOL result;
	GetProperty(0x4, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontItalic(BOOL propVal)
{
	SetProperty(0x4, VT_BOOL, propVal);
}

BOOL CSSPBCtrl::GetFontStrikethru()
{
	BOOL result;
	GetProperty(0x5, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontStrikethru(BOOL propVal)
{
	SetProperty(0x5, VT_BOOL, propVal);
}

BOOL CSSPBCtrl::GetFontUnderline()
{
	BOOL result;
	GetProperty(0x6, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFontUnderline(BOOL propVal)
{
	SetProperty(0x6, VT_BOOL, propVal);
}

CPicture CSSPBCtrl::GetPicture()
{
	LPDISPATCH pDispatch;
	GetProperty(0x7, VT_DISPATCH, (void*)&pDispatch);
	return CPicture(pDispatch);
}

void CSSPBCtrl::SetPicture(LPDISPATCH propVal)
{
	SetProperty(0x7, VT_DISPATCH, propVal);
}

short CSSPBCtrl::GetBevelWidth()
{
	short result;
	GetProperty(0x8, VT_I2, (void*)&result);
	return result;
}

void CSSPBCtrl::SetBevelWidth(short propVal)
{
	SetProperty(0x8, VT_I2, propVal);
}

BOOL CSSPBCtrl::GetOutline()
{
	BOOL result;
	GetProperty(0x9, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetOutline(BOOL propVal)
{
	SetProperty(0x9, VT_BOOL, propVal);
}

long CSSPBCtrl::GetAutoSize()
{
	long result;
	GetProperty(0xa, VT_I4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetAutoSize(long propVal)
{
	SetProperty(0xa, VT_I4, propVal);
}

long CSSPBCtrl::GetFont3D()
{
	long result;
	GetProperty(0xb, VT_I4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetFont3D(long propVal)
{
	SetProperty(0xb, VT_I4, propVal);
}

BOOL CSSPBCtrl::GetRoundedCorners()
{
	BOOL result;
	GetProperty(0xd, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetRoundedCorners(BOOL propVal)
{
	SetProperty(0xd, VT_BOOL, propVal);
}

COleFont CSSPBCtrl::GetFont()
{
	LPDISPATCH pDispatch;
	GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
	return COleFont(pDispatch);
}

void CSSPBCtrl::SetFont(LPDISPATCH propVal)
{
	SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}

OLE_COLOR CSSPBCtrl::GetForeColor()
{
	OLE_COLOR result;
	GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetForeColor(OLE_COLOR propVal)
{
	SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
}

CString CSSPBCtrl::GetCaption()
{
	CString result;
	GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
	return result;
}

void CSSPBCtrl::SetCaption(LPCTSTR propVal)
{
	SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}

BOOL CSSPBCtrl::GetEnabled()
{
	BOOL result;
	GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::SetEnabled(BOOL propVal)
{
	SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}

long CSSPBCtrl::GetMousePointer()
{
	long result;
	GetProperty(0xe, VT_I4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetMousePointer(long propVal)
{
	SetProperty(0xe, VT_I4, propVal);
}

CPicture CSSPBCtrl::GetMouseIcon()
{
	LPDISPATCH pDispatch;
	GetProperty(0xf, VT_DISPATCH, (void*)&pDispatch);
	return CPicture(pDispatch);
}

void CSSPBCtrl::SetMouseIcon(LPDISPATCH propVal)
{
	SetProperty(0xf, VT_DISPATCH, propVal);
}

BOOL CSSPBCtrl::Get_Value()
{
	BOOL result;
	GetProperty(0x0, VT_BOOL, (void*)&result);
	return result;
}

void CSSPBCtrl::Set_Value(BOOL propVal)
{
	SetProperty(0x0, VT_BOOL, propVal);
}

OLE_HANDLE CSSPBCtrl::GetHWnd()
{
	OLE_HANDLE result;
	GetProperty(DISPID_HWND, VT_I4, (void*)&result);
	return result;
}

void CSSPBCtrl::SetHWnd(OLE_HANDLE propVal)
{
	SetProperty(DISPID_HWND, VT_I4, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CSSPBCtrl operations

void CSSPBCtrl::DoClick()
{
	InvokeHelper(DISPID_DOCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CSSPBCtrl::Refresh()
{
	InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CSSPBCtrl::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions