📄 mapx.cpp
字号:
{
LPDISPATCH result;
GetProperty(0x3, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXLegend::SetTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x3, VT_DISPATCH, propVal);
}
CMapXStyle CMapXLegend::GetSubTitleStyle()
{
LPDISPATCH result;
GetProperty(0x4, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXLegend::SetSubTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x4, VT_DISPATCH, propVal);
}
CMapXStyle CMapXLegend::GetCompactTitleStyle()
{
LPDISPATCH result;
GetProperty(0x5, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXLegend::SetCompactTitleStyle(LPDISPATCH propVal)
{
SetProperty(0x5, VT_DISPATCH, propVal);
}
CMapXStyle CMapXLegend::GetBodyTextStyle()
{
LPDISPATCH result;
GetProperty(0x6, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXLegend::SetBodyTextStyle(LPDISPATCH propVal)
{
SetProperty(0x6, VT_DISPATCH, propVal);
}
CMapXLegendTexts CMapXLegend::GetLegendTexts()
{
LPDISPATCH result;
GetProperty(0x7, VT_DISPATCH, (void*)&result);
return CMapXLegendTexts(result);
}
BOOL CMapXLegend::GetCurrencyFormat()
{
BOOL result;
GetProperty(0x8, VT_BOOL, (void*)&result);
return result;
}
void CMapXLegend::SetCurrencyFormat(BOOL propVal)
{
SetProperty(0x8, VT_BOOL, propVal);
}
CString CMapXLegend::GetTitle()
{
CString result;
GetProperty(0x9, VT_BSTR, (void*)&result);
return result;
}
void CMapXLegend::SetTitle(LPCTSTR propVal)
{
SetProperty(0x9, VT_BSTR, propVal);
}
CString CMapXLegend::GetSubTitle()
{
CString result;
GetProperty(0xa, VT_BSTR, (void*)&result);
return result;
}
void CMapXLegend::SetSubTitle(LPCTSTR propVal)
{
SetProperty(0xa, VT_BSTR, propVal);
}
CString CMapXLegend::GetCompactTitle()
{
CString result;
GetProperty(0xb, VT_BSTR, (void*)&result);
return result;
}
void CMapXLegend::SetCompactTitle(LPCTSTR propVal)
{
SetProperty(0xb, VT_BSTR, propVal);
}
double CMapXLegend::GetLeft()
{
double result;
GetProperty(0xc, VT_R8, (void*)&result);
return result;
}
void CMapXLegend::SetLeft(double propVal)
{
SetProperty(0xc, VT_R8, propVal);
}
double CMapXLegend::GetTop()
{
double result;
GetProperty(0xd, VT_R8, (void*)&result);
return result;
}
void CMapXLegend::SetTop(double propVal)
{
SetProperty(0xd, VT_R8, propVal);
}
double CMapXLegend::GetWidth()
{
double result;
GetProperty(0xe, VT_R8, (void*)&result);
return result;
}
double CMapXLegend::GetHeight()
{
double result;
GetProperty(0xf, VT_R8, (void*)&result);
return result;
}
BOOL CMapXLegend::GetShowEmptyRanges()
{
BOOL result;
GetProperty(0x11, VT_BOOL, (void*)&result);
return result;
}
void CMapXLegend::SetShowEmptyRanges(BOOL propVal)
{
SetProperty(0x11, VT_BOOL, propVal);
}
BOOL CMapXLegend::GetShowCount()
{
BOOL result;
GetProperty(0x13, VT_BOOL, (void*)&result);
return result;
}
void CMapXLegend::SetShowCount(BOOL propVal)
{
SetProperty(0x13, VT_BOOL, propVal);
}
double CMapXLegend::GetPaperHeight()
{
double result;
GetProperty(0x15, VT_R8, (void*)&result);
return result;
}
double CMapXLegend::GetPaperWidth()
{
double result;
GetProperty(0x16, VT_R8, (void*)&result);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CMapXLegend operations
BOOL CMapXLegend::LegendDlg(const VARIANT& HelpFile, const VARIANT& HelpID)
{
BOOL bRetVal;
static BYTE parms[] =
VTS_VARIANT VTS_VARIANT;
InvokeHelper(0x10, DISPATCH_METHOD, VT_BOOL, (void*)&bRetVal, parms,
&HelpFile, &HelpID);
return(bRetVal);
}
void CMapXLegend::ExportLegend(LPCTSTR Destination, short Format)
{
static BYTE parms[] =
VTS_BSTR VTS_I2;
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Destination, Format);
}
void CMapXLegend::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);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXAnnotations properties
LPENUMVARIANT CMapXAnnotations::GetEnumerator()
{
LPENUMVARIANT pEnumVariant = 0;
LPUNKNOWN pUnknown = 0;
GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
if(pUnknown)
{
pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
pUnknown->Release();
}
return pEnumVariant;
}
BOOL CMapXAnnotations::GetEditable()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CMapXAnnotations::SetEditable(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
long CMapXAnnotations::GetCount()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CMapXAnnotations operations
CMapXAnnotation CMapXAnnotations::AddSymbol(double X, double Y)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_R8 VTS_R8;
InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
X, Y);
return CMapXAnnotation(result);
}
CMapXAnnotation CMapXAnnotations::Item(const VARIANT& Index)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
&Index);
return CMapXAnnotation(result);
}
void CMapXAnnotations::Remove(const VARIANT& Index)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&Index);
}
CMapXAnnotation CMapXAnnotations::AddText(LPCTSTR Text, double X, double Y, const VARIANT& Position)
{
LPDISPATCH result;
static BYTE parms[] =
VTS_BSTR VTS_R8 VTS_R8 VTS_VARIANT;
InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
Text, X, Y, &Position);
return CMapXAnnotation(result);
}
void CMapXAnnotations::RemoveAll()
{
InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CMapXAnnotation CMapXAnnotations::ActiveAnnotation()
{
LPDISPATCH result;
GetProperty(0x8, VT_DISPATCH, (void*)&result);
return CMapXAnnotation(result);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXThemeProperties properties
short CMapXThemeProperties::GetDistMethod()
{
short result;
GetProperty(0x1, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetDistMethod(short propVal)
{
SetProperty(0x1, VT_I2, propVal);
}
short CMapXThemeProperties::GetNumRanges()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetNumRanges(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
CMapXRangeCategories CMapXThemeProperties::GetRangeCategories()
{
LPDISPATCH result;
GetProperty(0x3, VT_DISPATCH, (void*)&result);
return CMapXRangeCategories(result);
}
short CMapXThemeProperties::GetDotSize()
{
short result;
GetProperty(0x5, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetDotSize(short propVal)
{
SetProperty(0x5, VT_I2, propVal);
}
BOOL CMapXThemeProperties::GetGraduated()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetGraduated(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
CMapXMultivarCategories CMapXThemeProperties::GetMultivarCategories()
{
LPDISPATCH result;
GetProperty(0x7, VT_DISPATCH, (void*)&result);
return CMapXMultivarCategories(result);
}
BOOL CMapXThemeProperties::GetIndependent()
{
BOOL result;
GetProperty(0x8, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetIndependent(BOOL propVal)
{
SetProperty(0x8, VT_BOOL, propVal);
}
CMapXIndividualValueCategories CMapXThemeProperties::GetIndividualValueCategories()
{
LPDISPATCH result;
GetProperty(0x4, VT_DISPATCH, (void*)&result);
return CMapXIndividualValueCategories(result);
}
double CMapXThemeProperties::GetValuePerDot()
{
double result;
GetProperty(0x9, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetValuePerDot(double propVal)
{
SetProperty(0x9, VT_R8, propVal);
}
double CMapXThemeProperties::GetDataValue()
{
double result;
GetProperty(0xa, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetDataValue(double propVal)
{
SetProperty(0xa, VT_R8, propVal);
}
double CMapXThemeProperties::GetSize()
{
double result;
GetProperty(0xb, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetSize(double propVal)
{
SetProperty(0xb, VT_R8, propVal);
}
double CMapXThemeProperties::GetWidth()
{
double result;
GetProperty(0xc, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetWidth(double propVal)
{
SetProperty(0xc, VT_R8, propVal);
}
CMapXStyle CMapXThemeProperties::GetSymbolStyle()
{
LPDISPATCH result;
GetProperty(0xd, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXThemeProperties::SetSymbolStyle(LPDISPATCH propVal)
{
SetProperty(0xd, VT_DISPATCH, propVal);
}
short CMapXThemeProperties::GetSpreadBy()
{
short result;
GetProperty(0xe, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetSpreadBy(short propVal)
{
SetProperty(0xe, VT_I2, propVal);
}
BOOL CMapXThemeProperties::GetAllowEmptyRanges()
{
BOOL result;
GetProperty(0xf, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetAllowEmptyRanges(BOOL propVal)
{
SetProperty(0xf, VT_BOOL, propVal);
}
unsigned long CMapXThemeProperties::GetDotColor()
{
unsigned long result;
GetProperty(0x10, VT_I4, (void*)&result);
return result;
}
void CMapXThemeProperties::SetDotColor(unsigned long propVal)
{
SetProperty(0x10, VT_I4, propVal);
}
BOOL CMapXThemeProperties::GetPieClockwise()
{
BOOL result;
GetProperty(0x11, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetPieClockwise(BOOL propVal)
{
SetProperty(0x11, VT_BOOL, propVal);
}
BOOL CMapXThemeProperties::GetPieHalfPies()
{
BOOL result;
GetProperty(0x12, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetPieHalfPies(BOOL propVal)
{
SetProperty(0x12, VT_BOOL, propVal);
}
short CMapXThemeProperties::GetPieStartAngle()
{
short result;
GetProperty(0x13, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetPieStartAngle(short propVal)
{
SetProperty(0x13, VT_I2, propVal);
}
BOOL CMapXThemeProperties::GetBarStacked()
{
BOOL result;
GetProperty(0x14, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetBarStacked(BOOL propVal)
{
SetProperty(0x14, VT_BOOL, propVal);
}
CMapXStyle CMapXThemeProperties::GetNegativeSymbolStyle()
{
LPDISPATCH result;
GetProperty(0x15, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXThemeProperties::SetNegativeSymbolStyle(LPDISPATCH propVal)
{
SetProperty(0x15, VT_DISPATCH, propVal);
}
BOOL CMapXThemeProperties::GetShowNegativeValues()
{
BOOL result;
GetProperty(0x16, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetShowNegativeValues(BOOL propVal)
{
SetProperty(0x16, VT_BOOL, propVal);
}
short CMapXThemeProperties::GetGraduateSizeBy()
{
short result;
GetProperty(0x17, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetGraduateSizeBy(short propVal)
{
SetProperty(0x17, VT_I2, propVal);
}
CMapXStyle CMapXThemeProperties::GetBorderStyle()
{
LPDISPATCH result;
GetProperty(0x18, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXThemeProperties::SetBorderStyle(LPDISPATCH propVal)
{
SetProperty(0x18, VT_DISPATCH, propVal);
}
double CMapXThemeProperties::GetBarWidth()
{
double result;
GetProperty(0x19, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetBarWidth(double propVal)
{
SetProperty(0x19, VT_R8, propVal);
}
BOOL CMapXThemeProperties::GetBarIndependentScale()
{
BOOL result;
GetProperty(0x1a, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetBarIndependentScale(BOOL propVal)
{
SetProperty(0x1a, VT_BOOL, propVal);
}
CMapXStyle CMapXThemeProperties::GetPositiveSymbolStyle()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -