sorect.cpp

来自「用VC+SuperMap开发的校园GIS系统」· C++ 代码 · 共 102 行

CPP
102
字号
// 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 "sorect.h"

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


/////////////////////////////////////////////////////////////////////////////
// CsoRect properties

double CsoRect::GetLeft()
{
	double result;
	GetProperty(0x1, VT_R8, (void*)&result);
	return result;
}

void CsoRect::SetLeft(double propVal)
{
	SetProperty(0x1, VT_R8, propVal);
}

double CsoRect::GetTop()
{
	double result;
	GetProperty(0x2, VT_R8, (void*)&result);
	return result;
}

void CsoRect::SetTop(double propVal)
{
	SetProperty(0x2, VT_R8, propVal);
}

double CsoRect::GetRight()
{
	double result;
	GetProperty(0x3, VT_R8, (void*)&result);
	return result;
}

void CsoRect::SetRight(double propVal)
{
	SetProperty(0x3, VT_R8, propVal);
}

double CsoRect::GetBottom()
{
	double result;
	GetProperty(0x4, VT_R8, (void*)&result);
	return result;
}

void CsoRect::SetBottom(double propVal)
{
	SetProperty(0x4, VT_R8, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CsoRect operations

double CsoRect::Width()
{
	double result;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
	return result;
}

double CsoRect::Height()
{
	double result;
	InvokeHelper(0x6, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
	return result;
}

CsoPoint CsoRect::CenterPoint()
{
	LPDISPATCH pDispatch;
	InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
	return CsoPoint(pDispatch);
}

CsoPoint CsoRect::TopLeft()
{
	LPDISPATCH pDispatch;
	InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
	return CsoPoint(pDispatch);
}

CsoPoint CsoRect::BottomRight()
{
	LPDISPATCH pDispatch;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
	return CsoPoint(pDispatch);
}

⌨️ 快捷键说明

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