?? mapx.cpp
字號:
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Destination, Format);
}
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;
}
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);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXLegend operations
/////////////////////////////////////////////////////////////////////////////
// CMapXAnnotations properties
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()
{
LPDISPATCH result;
GetProperty(0x1b, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXThemeProperties::SetPositiveSymbolStyle(LPDISPATCH propVal)
{
SetProperty(0x1b, VT_DISPATCH, propVal);
}
CMapXStyle CMapXThemeProperties::GetBarFrameStyle()
{
LPDISPATCH result;
GetProperty(0x1c, VT_DISPATCH, (void*)&result);
return CMapXStyle(result);
}
void CMapXThemeProperties::SetBarFrameStyle(LPDISPATCH propVal)
{
SetProperty(0x1c, VT_DISPATCH, propVal);
}
BOOL CMapXThemeProperties::GetPieGraduated()
{
BOOL result;
GetProperty(0x1d, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetPieGraduated(BOOL propVal)
{
SetProperty(0x1d, VT_BOOL, propVal);
}
BOOL CMapXThemeProperties::GetBarGraduatedStack()
{
BOOL result;
GetProperty(0x1e, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetBarGraduatedStack(BOOL propVal)
{
SetProperty(0x1e, VT_BOOL, propVal);
}
short CMapXThemeProperties::GetApplyAttribute()
{
short result;
GetProperty(0x1f, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetApplyAttribute(short propVal)
{
SetProperty(0x1f, VT_I2, propVal);
}
BOOL CMapXThemeProperties::GetRoundRanges()
{
BOOL result;
GetProperty(0x20, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetRoundRanges(BOOL propVal)
{
SetProperty(0x20, VT_BOOL, propVal);
}
double CMapXThemeProperties::GetRoundBy()
{
double result;
GetProperty(0x21, VT_R8, (void*)&result);
return result;
}
void CMapXThemeProperties::SetRoundBy(double propVal)
{
SetProperty(0x21, VT_R8, propVal);
}
short CMapXThemeProperties::GetColorMethod()
{
short result;
GetProperty(0x22, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetColorMethod(short propVal)
{
SetProperty(0x22, VT_I2, propVal);
}
BOOL CMapXThemeProperties::GetInflectRanges()
{
BOOL result;
GetProperty(0x23, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetInflectRanges(BOOL propVal)
{
SetProperty(0x23, VT_BOOL, propVal);
}
short CMapXThemeProperties::GetInflectionRange()
{
short result;
GetProperty(0x24, VT_I2, (void*)&result);
return result;
}
void CMapXThemeProperties::SetInflectionRange(short propVal)
{
SetProperty(0x24, VT_I2, propVal);
}
unsigned long CMapXThemeProperties::GetInflectionColor()
{
unsigned long result;
GetProperty(0x25, VT_I4, (void*)&result);
return result;
}
void CMapXThemeProperties::SetInflectionColor(unsigned long propVal)
{
SetProperty(0x25, VT_I4, propVal);
}
BOOL CMapXThemeProperties::GetBarFramed()
{
BOOL result;
GetProperty(0x26, VT_BOOL, (void*)&result);
return result;
}
void CMapXThemeProperties::SetBarFramed(BOOL propVal)
{
SetProperty(0x26, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXThemeProperties operations
/////////////////////////////////////////////////////////////////////////////
// CMapXSelection properties
long CMapXSelection::GetCount()
{
long result;
DISPID dispid;
HRESULT hr;
CString cx = "Count";
BSTR szMember = cx.AllocSysString();
hr = m_lpDispatch->GetIDsOfNames(IID_NULL, (OLECHAR FAR*FAR*)&szMember, 1,
0, &dispid);
::SysFreeString(szMember);
GetProperty(dispid, VT_I4, (void*)&result);
return result;
}
/////////////////////////////////////////////////////////////////////////////
// CMapXSelection operations
void CMapXSelection::SelectByRegion(LPDISPATCH Layer, long FeatureID, short Flag)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -