⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 meter.cpp

📁 一个水轮机调速的控制程序
💻 CPP
字号:
// 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 "meter.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMeter

IMPLEMENT_DYNCREATE(CMeter, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CMeter properties

short CMeter::GetInnerTop()
{
	short result;
	GetProperty(0x1, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetInnerTop(short propVal)
{
	SetProperty(0x1, VT_I2, propVal);
}

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

void CMeter::SetInnerLeft(short propVal)
{
	SetProperty(0x2, VT_I2, propVal);
}

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

void CMeter::SetInnerRight(short propVal)
{
	SetProperty(0x3, VT_I2, propVal);
}

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

void CMeter::SetInnerBottom(short propVal)
{
	SetProperty(0x4, VT_I2, propVal);
}

float CMeter::GetValue()
{
	float result;
	GetProperty(0x5, VT_R4, (void*)&result);
	return result;
}

void CMeter::SetValue(float propVal)
{
	SetProperty(0x5, VT_R4, propVal);
}

float CMeter::GetMaxValue()
{
	float result;
	GetProperty(0x6, VT_R4, (void*)&result);
	return result;
}

void CMeter::SetMaxValue(float propVal)
{
	SetProperty(0x6, VT_R4, propVal);
}

float CMeter::GetMinValue()
{
	float result;
	GetProperty(0x7, VT_R4, (void*)&result);
	return result;
}

void CMeter::SetMinValue(float propVal)
{
	SetProperty(0x7, VT_R4, propVal);
}

float CMeter::GetMidStart()
{
	float result;
	GetProperty(0x8, VT_R4, (void*)&result);
	return result;
}

void CMeter::SetMidStart(float propVal)
{
	SetProperty(0x8, VT_R4, propVal);
}

float CMeter::GetHighStart()
{
	float result;
	GetProperty(0x9, VT_R4, (void*)&result);
	return result;
}

void CMeter::SetHighStart(float propVal)
{
	SetProperty(0x9, VT_R4, propVal);
}

unsigned long CMeter::GetHighColor()
{
	unsigned long result;
	GetProperty(0xa, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetHighColor(unsigned long propVal)
{
	SetProperty(0xa, VT_I4, propVal);
}

unsigned long CMeter::GetMidColor()
{
	unsigned long result;
	GetProperty(0xb, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetMidColor(unsigned long propVal)
{
	SetProperty(0xb, VT_I4, propVal);
}

unsigned long CMeter::GetLowColor()
{
	unsigned long result;
	GetProperty(0xc, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetLowColor(unsigned long propVal)
{
	SetProperty(0xc, VT_I4, propVal);
}

unsigned long CMeter::GetBorderColor()
{
	unsigned long result;
	GetProperty(0xd, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetBorderColor(unsigned long propVal)
{
	SetProperty(0xd, VT_I4, propVal);
}

short CMeter::GetBorderHigh()
{
	short result;
	GetProperty(0xe, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetBorderHigh(short propVal)
{
	SetProperty(0xe, VT_I2, propVal);
}

short CMeter::GetScaleWidth()
{
	short result;
	GetProperty(0xf, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetScaleWidth(short propVal)
{
	SetProperty(0xf, VT_I2, propVal);
}

short CMeter::GetScaleStartAngle()
{
	short result;
	GetProperty(0x10, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetScaleStartAngle(short propVal)
{
	SetProperty(0x10, VT_I2, propVal);
}

short CMeter::GetScaleEndAngle()
{
	short result;
	GetProperty(0x11, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetScaleEndAngle(short propVal)
{
	SetProperty(0x11, VT_I2, propVal);
}

short CMeter::GetCenterX()
{
	short result;
	GetProperty(0x12, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetCenterX(short propVal)
{
	SetProperty(0x12, VT_I2, propVal);
}

short CMeter::GetCenterY()
{
	short result;
	GetProperty(0x13, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetCenterY(short propVal)
{
	SetProperty(0x13, VT_I2, propVal);
}

short CMeter::GetRadius()
{
	short result;
	GetProperty(0x14, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetRadius(short propVal)
{
	SetProperty(0x14, VT_I2, propVal);
}

unsigned long CMeter::GetNeedleColor()
{
	unsigned long result;
	GetProperty(0x15, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetNeedleColor(unsigned long propVal)
{
	SetProperty(0x15, VT_I4, propVal);
}

unsigned long CMeter::GetScaleColor()
{
	unsigned long result;
	GetProperty(0x16, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetScaleColor(unsigned long propVal)
{
	SetProperty(0x16, VT_I4, propVal);
}

unsigned long CMeter::GetMeterBackColor()
{
	unsigned long result;
	GetProperty(0x17, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetMeterBackColor(unsigned long propVal)
{
	SetProperty(0x17, VT_I4, propVal);
}

short CMeter::GetScaleNumber()
{
	short result;
	GetProperty(0x18, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetScaleNumber(short propVal)
{
	SetProperty(0x18, VT_I2, propVal);
}

COleFont CMeter::GetScaleFont()
{
	LPDISPATCH pDispatch;
	GetProperty(0x1d, VT_DISPATCH, (void*)&pDispatch);
	return COleFont(pDispatch);
}

void CMeter::SetScaleFont(LPDISPATCH propVal)
{
	SetProperty(0x1d, VT_DISPATCH, propVal);
}

short CMeter::GetPerScaleNumber()
{
	short result;
	GetProperty(0x19, VT_I2, (void*)&result);
	return result;
}

void CMeter::SetPerScaleNumber(short propVal)
{
	SetProperty(0x19, VT_I2, propVal);
}

unsigned long CMeter::GetFontColor()
{
	unsigned long result;
	GetProperty(0x1a, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetFontColor(unsigned long propVal)
{
	SetProperty(0x1a, VT_I4, propVal);
}

unsigned long CMeter::GetNameColor()
{
	unsigned long result;
	GetProperty(0x1b, VT_I4, (void*)&result);
	return result;
}

void CMeter::SetNameColor(unsigned long propVal)
{
	SetProperty(0x1b, VT_I4, propVal);
}

CString CMeter::GetNameA()
{
	CString result;
	GetProperty(0x1c, VT_BSTR, (void*)&result);
	return result;
}

void CMeter::SetNameA(LPCTSTR propVal)
{
	SetProperty(0x1c, VT_BSTR, propVal);
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CMeter operations

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

⌨️ 快捷键说明

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