// 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 "compass.h"

// Dispatch interfaces referenced by this interface
#include "font.h"

/////////////////////////////////////////////////////////////////////////////
// CCompass

IMPLEMENT_DYNCREATE(CCompass, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CCompass properties

OLE_COLOR CCompass::GetBackColor()
{
	OLE_COLOR result;
	GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetBackColor(OLE_COLOR propVal)
{
	SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}

CString CCompass::GetCaption()
{
	CString result;
	GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
	return result;
}

void CCompass::SetCaption(LPCTSTR propVal)
{
	SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}

OLE_COLOR CCompass::GetForeColor()
{
	OLE_COLOR result;
	GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetForeColor(OLE_COLOR propVal)
{
	SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
}

double CCompass::GetHeading()
{
	double result;
	GetProperty(0x1, VT_R8, (void*)&result);
	return result;
}

void CCompass::SetHeading(double propVal)
{
	SetProperty(0x1, VT_R8, propVal);
}

BOOL CCompass::GetCircleShape()
{
	BOOL result;
	GetProperty(0x2, VT_BOOL, (void*)&result);
	return result;
}

void CCompass::SetCircleShape(BOOL propVal)
{
	SetProperty(0x2, VT_BOOL, propVal);
}

unsigned long CCompass::GetOuterRingColor()
{
	unsigned long result;
	GetProperty(0x3, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetOuterRingColor(unsigned long propVal)
{
	SetProperty(0x3, VT_I4, propVal);
}

unsigned long CCompass::GetCompassColor()
{
	unsigned long result;
	GetProperty(0x4, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetCompassColor(unsigned long propVal)
{
	SetProperty(0x4, VT_I4, propVal);
}

unsigned long CCompass::GetGridColor()
{
	unsigned long result;
	GetProperty(0x5, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetGridColor(unsigned long propVal)
{
	SetProperty(0x5, VT_I4, propVal);
}

short CCompass::GetOuterRingWidth()
{
	short result;
	GetProperty(0x6, VT_I2, (void*)&result);
	return result;
}

void CCompass::SetOuterRingWidth(short propVal)
{
	SetProperty(0x6, VT_I2, propVal);
}

short CCompass::GetMajorGridWidth()
{
	short result;
	GetProperty(0x7, VT_I2, (void*)&result);
	return result;
}

void CCompass::SetMajorGridWidth(short propVal)
{
	SetProperty(0x7, VT_I2, propVal);
}

short CCompass::GetMinorGridWidth()
{
	short result;
	GetProperty(0x8, VT_I2, (void*)&result);
	return result;
}

void CCompass::SetMinorGridWidth(short propVal)
{
	SetProperty(0x8, VT_I2, propVal);
}

COleFont CCompass::GetFont()
{
	LPDISPATCH pDispatch;
	GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
	return COleFont(pDispatch);
}

void CCompass::SetFont(LPDISPATCH propVal)
{
	SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}

double CCompass::GetMajorGridIncrement()
{
	double result;
	GetProperty(0x9, VT_R8, (void*)&result);
	return result;
}

void CCompass::SetMajorGridIncrement(double propVal)
{
	SetProperty(0x9, VT_R8, propVal);
}

double CCompass::GetMinorGridIncrement()
{
	double result;
	GetProperty(0xa, VT_R8, (void*)&result);
	return result;
}

void CCompass::SetMinorGridIncrement(double propVal)
{
	SetProperty(0xa, VT_R8, propVal);
}

unsigned long CCompass::GetTextColor()
{
	unsigned long result;
	GetProperty(0xb, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetTextColor(unsigned long propVal)
{
	SetProperty(0xb, VT_I4, propVal);
}

COleFont CCompass::GetDirectionFont()
{
	LPDISPATCH pDispatch;
	GetProperty(0x10, VT_DISPATCH, (void*)&pDispatch);
	return COleFont(pDispatch);
}

void CCompass::SetDirectionFont(LPDISPATCH propVal)
{
	SetProperty(0x10, VT_DISPATCH, propVal);
}

short CCompass::GetVehicleWidth()
{
	short result;
	GetProperty(0xc, VT_I2, (void*)&result);
	return result;
}

void CCompass::SetVehicleWidth(short propVal)
{
	SetProperty(0xc, VT_I2, propVal);
}

unsigned long CCompass::GetVehicleColor()
{
	unsigned long result;
	GetProperty(0xd, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetVehicleColor(unsigned long propVal)
{
	SetProperty(0xd, VT_I4, propVal);
}

unsigned long CCompass::GetTailconeColor()
{
	unsigned long result;
	GetProperty(0xe, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetTailconeColor(unsigned long propVal)
{
	SetProperty(0xe, VT_I4, propVal);
}

unsigned long CCompass::GetReferenceMarkColor()
{
	unsigned long result;
	GetProperty(0xf, VT_I4, (void*)&result);
	return result;
}

void CCompass::SetReferenceMarkColor(unsigned long propVal)
{
	SetProperty(0xf, VT_I4, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CCompass operations

void CCompass::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
