mfcaasvr.cpp

来自「VisualC++实践与提高-ActiveX篇源码」· C++ 代码 · 共 75 行

CPP
75
字号
// Machine generated IDispatch wrapper class(es) created with ClassWizard

#include "stdafx.h"
#include "mfcaasvr.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif



/////////////////////////////////////////////////////////////////////////////
// IAxCircle properties

long IAxCircle::GetRadius()
{
	long result;
	GetProperty(0x1, VT_I4, (void*)&result);
	return result;
}

void IAxCircle::SetRadius(long propVal)
{
	SetProperty(0x1, VT_I4, propVal);
}

short IAxCircle::GetRed()
{
	short result;
	GetProperty(0x2, VT_I2, (void*)&result);
	return result;
}

void IAxCircle::SetRed(short propVal)
{
	SetProperty(0x2, VT_I2, propVal);
}

short IAxCircle::GetGreen()
{
	short result;
	GetProperty(0x3, VT_I2, (void*)&result);
	return result;
}

void IAxCircle::SetGreen(short propVal)
{
	SetProperty(0x3, VT_I2, propVal);
}

short IAxCircle::GetBlue()
{
	short result;
	GetProperty(0x4, VT_I2, (void*)&result);
	return result;
}

void IAxCircle::SetBlue(short propVal)
{
	SetProperty(0x4, VT_I2, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// IAxCircle operations

void IAxCircle::DrawCircle(long lDC)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 lDC);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?