📄 cmapxlegend.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 "cmapxlegend.h"
// Dispatch interfaces referenced by this interface
#include "CMapXStyle.h"
#include "CMapXLegendTexts.h"
/////////////////////////////////////////////////////////////////////////////
// CCMapXLegend properties
BOOL CCMapXLegend::GetCompact()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CCMapXLegend::SetCompact(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
BOOL CCMapXLegend::GetVisible()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CCMapXLegend::SetVisible(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
CCMapXStyle CCMapXLegend::GetTitleStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x3, VT_DISPATCH, (void*)&pDispatch);
return CCMapXStyle(pDispatch);
}
void CCMapXLegend::SetTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x3, VT_DISPATCH, propVal);
}
CCMapXStyle CCMapXLegend::GetSubTitleStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x4, VT_DISPATCH, (void*)&pDispatch);
return CCMapXStyle(pDispatch);
}
void CCMapXLegend::SetSubTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x4, VT_DISPATCH, propVal);
}
CCMapXStyle CCMapXLegend::GetCompactTitleStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x5, VT_DISPATCH, (void*)&pDispatch);
return CCMapXStyle(pDispatch);
}
void CCMapXLegend::SetCompactTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x5, VT_DISPATCH, propVal);
}
CCMapXStyle CCMapXLegend::GetBodyTextStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x6, VT_DISPATCH, (void*)&pDispatch);
return CCMapXStyle(pDispatch);
}
void CCMapXLegend::SetBodyTextStyle(LPDISPATCH propVal)
{
SetProperty(0x6, VT_DISPATCH, propVal);
}
CCMapXLegendTexts CCMapXLegend::GetLegendTexts()
{
LPDISPATCH pDispatch;
GetProperty(0x7, VT_DISPATCH, (void*)&pDispatch);
return CCMapXLegendTexts(pDispatch);
}
BOOL CCMapXLegend::GetCurrencyFormat()
{
BOOL result;
GetProperty(0x8, VT_BOOL, (void*)&result);
return result;
}
void CCMapXLegend::SetCurrencyFormat(BOOL propVal)
{
SetProperty(0x8, VT_BOOL, propVal);
}
CString CCMapXLegend::GetTitle()
{
CString result;
GetProperty(0x9, VT_BSTR, (void*)&result);
return result;
}
void CCMapXLegend::SetTitle(LPCTSTR propVal)
{
SetProperty(0x9, VT_BSTR, propVal);
}
CString CCMapXLegend::GetSubTitle()
{
CString result;
GetProperty(0xa, VT_BSTR, (void*)&result);
return result;
}
void CCMapXLegend::SetSubTitle(LPCTSTR propVal)
{
SetProperty(0xa, VT_BSTR, propVal);
}
CString CCMapXLegend::GetCompactTitle()
{
CString result;
GetProperty(0xb, VT_BSTR, (void*)&result);
return result;
}
void CCMapXLegend::SetCompactTitle(LPCTSTR propVal)
{
SetProperty(0xb, VT_BSTR, propVal);
}
float CCMapXLegend::GetLeft()
{
float result;
GetProperty(0xc, VT_R4, (void*)&result);
return result;
}
void CCMapXLegend::SetLeft(float propVal)
{
SetProperty(0xc, VT_R4, propVal);
}
float CCMapXLegend::GetTop()
{
float result;
GetProperty(0xd, VT_R4, (void*)&result);
return result;
}
void CCMapXLegend::SetTop(float propVal)
{
SetProperty(0xd, VT_R4, propVal);
}
float CCMapXLegend::GetWidth()
{
float result;
GetProperty(0xe, VT_R4, (void*)&result);
return result;
}
float CCMapXLegend::GetHeight()
{
float result;
GetProperty(0xf, VT_R4, (void*)&result);
return result;
}
BOOL CCMapXLegend::GetShowEmptyRanges()
{
BOOL result;
GetProperty(0x11, VT_BOOL, (void*)&result);
return result;
}
void CCMapXLegend::SetShowEmptyRanges(BOOL propVal)
{
SetProperty(0x11, VT_BOOL, propVal);
}
BOOL CCMapXLegend::GetShowCount()
{
BOOL result;
GetProperty(0x13, VT_BOOL, (void*)&result);
return result;
}
void CCMapXLegend::SetShowCount(BOOL propVal)
{
SetProperty(0x13, VT_BOOL, propVal);
}
double CCMapXLegend::GetPaperHeight()
{
double result;
GetProperty(0x15, VT_R8, (void*)&result);
return result;
}
double CCMapXLegend::GetPaperWidth()
{
double result;
GetProperty(0x16, VT_R8, (void*)&result);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CCMapXLegend operations
BOOL CCMapXLegend::LegendDlg(const VARIANT& HelpFile, const VARIANT& HelpID)
{
BOOL result;
static BYTE parms[] =
VTS_VARIANT VTS_VARIANT;
InvokeHelper(0x10, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
&HelpFile, &HelpID);
return result;
}
void CCMapXLegend::ExportLegend(LPCTSTR Destination, short Format)
{
static BYTE parms[] =
VTS_BSTR VTS_I2;
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Destination, Format);
}
void CCMapXLegend::PrintLegend(long hDC, long X, long Y, long W, long H)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
hDC, X, Y, W, H);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -