📄 cwcaption.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 "cwcaption.h"
// Dispatch interfaces referenced by this interface
#include "FontDisp.h"
/////////////////////////////////////////////////////////////////////////////
// CCWCaption properties
CString CCWCaption::GetText()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CCWCaption::SetText(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
double CCWCaption::GetXCoordinate()
{
double result;
GetProperty(0x2, VT_R8, (void*)&result);
return result;
}
void CCWCaption::SetXCoordinate(double propVal)
{
SetProperty(0x2, VT_R8, propVal);
}
double CCWCaption::GetYCoordinate()
{
double result;
GetProperty(0x3, VT_R8, (void*)&result);
return result;
}
void CCWCaption::SetYCoordinate(double propVal)
{
SetProperty(0x3, VT_R8, propVal);
}
unsigned long CCWCaption::GetColor()
{
unsigned long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CCWCaption::SetColor(unsigned long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
CFontDisp CCWCaption::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(0x5, VT_DISPATCH, (void*)&pDispatch);
return CFontDisp(pDispatch);
}
void CCWCaption::SetFont(LPDISPATCH propVal)
{
SetProperty(0x5, VT_DISPATCH, propVal);
}
long CCWCaption::GetAlignment()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CCWCaption::SetAlignment(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
double CCWCaption::GetAngle()
{
double result;
GetProperty(0x7, VT_R8, (void*)&result);
return result;
}
void CCWCaption::SetAngle(double propVal)
{
SetProperty(0x7, VT_R8, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CCWCaption operations
void CCWCaption::SetCoordinates(double XCoordinate, double YCoordinate)
{
static BYTE parms[] =
VTS_R8 VTS_R8;
InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
XCoordinate, YCoordinate);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -