📄 sorect.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 "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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -