Mapx.cpp
资源名称:vc++gps.zip [点击查看]
上传用户:jc6688
上传日期:2013-05-06
资源大小:344k
文件大小:145k
源码类别:
GPS编程
开发平台:
Visual C++
- #include "stdafx.h"
- #include "mapx.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMapX
- IMPLEMENT_DYNCREATE(CMapX, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CMapX properties
- CString CMapX::GetDataSetGeoField()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetDataSetGeoField(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CString CMapX::GetVersion()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- OLE_HANDLE CMapX::GetHWnd()
- {
- OLE_HANDLE result;
- GetProperty(DISPID_HWND, VT_I4, (void*)&result);
- return result;
- }
- CMapXAnnotations CMapX::GetAnnotations()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return CMapXAnnotations(result);
- }
- CMapXLayers CMapX::GetLayers()
- {
- LPDISPATCH result;
- GetProperty(0x5, VT_DISPATCH, (void*)&result);
- return CMapXLayers(result);
- }
- BOOL CMapX::GetAutoRedraw()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetAutoRedraw(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- double CMapX::GetZoom()
- {
- double result;
- GetProperty(0x7, VT_R8, (void*)&result);
- return result;
- }
- void CMapX::SetZoom(double propVal)
- {
- SetProperty(0x7, VT_R8, propVal);
- }
- double CMapX::GetCenterX()
- {
- double result;
- GetProperty(0x8, VT_R8, (void*)&result);
- return result;
- }
- void CMapX::SetCenterX(double propVal)
- {
- SetProperty(0x8, VT_R8, propVal);
- }
- double CMapX::GetCenterY()
- {
- double result;
- GetProperty(0x9, VT_R8, (void*)&result);
- return result;
- }
- void CMapX::SetCenterY(double propVal)
- {
- SetProperty(0x9, VT_R8, propVal);
- }
- CString CMapX::GetGeoSet()
- {
- CString result;
- GetProperty(0xa, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetGeoSet(LPCTSTR propVal)
- {
- SetProperty(0xa, VT_BSTR, propVal);
- }
- double CMapX::GetGeoSetWidth()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
- double CMapX::GetMapPaperHeight()
- {
- double result;
- GetProperty(0xc, VT_R8, (void*)&result);
- return result;
- }
- double CMapX::GetMapPaperWidth()
- {
- double result;
- GetProperty(0xd, VT_R8, (void*)&result);
- return result;
- }
- short CMapX::GetMaxSearchTime()
- {
- short result;
- GetProperty(0xe, VT_I2, (void*)&result);
- return result;
- }
- void CMapX::SetMaxSearchTime(short propVal)
- {
- SetProperty(0xe, VT_I2, propVal);
- }
- long CMapX::GetPaperUnit()
- {
- long result;
- GetProperty(0xf, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetPaperUnit(long propVal)
- {
- SetProperty(0xf, VT_I4, propVal);
- }
- BOOL CMapX::GetPreferCompactLegends()
- {
- BOOL result;
- GetProperty(0x10, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetPreferCompactLegends(BOOL propVal)
- {
- SetProperty(0x10, VT_BOOL, propVal);
- }
- CMapXStyle CMapX::GetDefaultStyle()
- {
- LPDISPATCH result;
- GetProperty(0x11, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapX::SetDefaultStyle(LPDISPATCH propVal)
- {
- SetProperty(0x11, VT_DISPATCH, propVal);
- }
- CString CMapX::GetGeoDictionary()
- {
- CString result;
- GetProperty(0x12, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetGeoDictionary(LPCTSTR propVal)
- {
- SetProperty(0x12, VT_BSTR, propVal);
- }
- long CMapX::GetDataSetTheme()
- {
- long result;
- GetProperty(0x13, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetDataSetTheme(long propVal)
- {
- SetProperty(0x13, VT_I4, propVal);
- }
- long CMapX::GetCurrentTool()
- {
- long result;
- GetProperty(0x14, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetCurrentTool(long propVal)
- {
- SetProperty(0x14, VT_I4, propVal);
- }
- long CMapX::GetMousePointer()
- {
- long result;
- GetProperty(0x15, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetMousePointer(long propVal)
- {
- SetProperty(0x15, VT_I4, propVal);
- }
- CMapXDatasets CMapX::GetDatasets()
- {
- LPDISPATCH result;
- GetProperty(0x16, VT_DISPATCH, (void*)&result);
- return CMapXDatasets(result);
- }
- CMapXTitle CMapX::GetTitle()
- {
- LPDISPATCH result;
- GetProperty(0x17, VT_DISPATCH, (void*)&result);
- return CMapXTitle(result);
- }
- CString CMapX::GetTitleText()
- {
- CString result;
- GetProperty(0x18, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetTitleText(LPCTSTR propVal)
- {
- SetProperty(0x18, VT_BSTR, propVal);
- }
- long CMapX::GetMapUnit()
- {
- long result;
- GetProperty(0x19, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetMapUnit(long propVal)
- {
- SetProperty(0x19, VT_I4, propVal);
- }
- double CMapX::GetRotation()
- {
- double result;
- GetProperty(0x1a, VT_R8, (void*)&result);
- return result;
- }
- void CMapX::SetRotation(double propVal)
- {
- SetProperty(0x1a, VT_R8, propVal);
- }
- CMapXGeosets CMapX::GetGeosets()
- {
- LPDISPATCH result;
- GetProperty(0x1b, VT_DISPATCH, (void*)&result);
- return CMapXGeosets(result);
- }
- long CMapX::GetAreaUnit()
- {
- long result;
- GetProperty(0x1c, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetAreaUnit(long propVal)
- {
- SetProperty(0x1c, VT_I4, propVal);
- }
- CMapXRectangle CMapX::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x1d, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- void CMapX::SetBounds(LPDISPATCH propVal)
- {
- SetProperty(0x1d, VT_DISPATCH, propVal);
- }
- CMapXCoordSys CMapX::GetDisplayCoordSys()
- {
- LPDISPATCH result;
- GetProperty(0x1e, VT_DISPATCH, (void*)&result);
- return CMapXCoordSys(result);
- }
- void CMapX::SetDisplayCoordSys(LPDISPATCH propVal)
- {
- SetProperty(0x1e, VT_DISPATCH, propVal);
- }
- CMapXCoordSys CMapX::GetNumericCoordSys()
- {
- LPDISPATCH result;
- GetProperty(0x1f, VT_DISPATCH, (void*)&result);
- return CMapXCoordSys(result);
- }
- void CMapX::SetNumericCoordSys(LPDISPATCH propVal)
- {
- SetProperty(0x1f, VT_DISPATCH, propVal);
- }
- BOOL CMapX::GetExportSelection()
- {
- BOOL result;
- GetProperty(0x20, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetExportSelection(BOOL propVal)
- {
- SetProperty(0x20, VT_BOOL, propVal);
- }
- CMapXStyle CMapX::GetSelectionStyle()
- {
- LPDISPATCH result;
- GetProperty(0x21, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapX::SetSelectionStyle(LPDISPATCH propVal)
- {
- SetProperty(0x21, VT_DISPATCH, propVal);
- }
- CMapXFeatureFactory CMapX::GetFeatureFactory()
- {
- LPDISPATCH result;
- GetProperty(0x31, VT_DISPATCH, (void*)&result);
- return CMapXFeatureFactory(result);
- }
- long CMapX::GetDefaultConversionResolution()
- {
- long result;
- GetProperty(0x32, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetDefaultConversionResolution(long propVal)
- {
- SetProperty(0x32, VT_I4, propVal);
- }
- OLE_COLOR CMapX::GetBackColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetBackColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
- }
- long CMapX::GetMousewheelSupport()
- {
- long result;
- GetProperty(0x33, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetMousewheelSupport(long propVal)
- {
- SetProperty(0x33, VT_I4, propVal);
- }
- BOOL CMapX::GetMatchNumericFields()
- {
- BOOL result;
- GetProperty(0x34, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetMatchNumericFields(BOOL propVal)
- {
- SetProperty(0x34, VT_BOOL, propVal);
- }
- double CMapX::GetMapScreenWidth()
- {
- double result;
- GetProperty(0x35, VT_R8, (void*)&result);
- return result;
- }
- double CMapX::GetMapScreenHeight()
- {
- double result;
- GetProperty(0x36, VT_R8, (void*)&result);
- return result;
- }
- long CMapX::GetRedrawInterval()
- {
- long result;
- GetProperty(0x37, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetRedrawInterval(long propVal)
- {
- SetProperty(0x37, VT_I4, propVal);
- }
- CString CMapX::GetSearchPath()
- {
- CString result;
- GetProperty(0x38, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetSearchPath(LPCTSTR propVal)
- {
- SetProperty(0x38, VT_BSTR, propVal);
- }
- short CMapX::GetMatchThreshold()
- {
- short result;
- GetProperty(0x39, VT_I2, (void*)&result);
- return result;
- }
- void CMapX::SetMatchThreshold(short propVal)
- {
- SetProperty(0x39, VT_I2, propVal);
- }
- BOOL CMapX::GetWaitCursorEnabled()
- {
- BOOL result;
- GetProperty(0x3a, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetWaitCursorEnabled(BOOL propVal)
- {
- SetProperty(0x3a, VT_BOOL, propVal);
- }
- BOOL CMapX::GetPanAnimationLayer()
- {
- BOOL result;
- GetProperty(0x3c, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetPanAnimationLayer(BOOL propVal)
- {
- SetProperty(0x3c, VT_BOOL, propVal);
- }
- long CMapX::GetInfotipPopupDelay()
- {
- long result;
- GetProperty(0x3d, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetInfotipPopupDelay(long propVal)
- {
- SetProperty(0x3d, VT_I4, propVal);
- }
- CString CMapX::GetMouseIcon()
- {
- CString result;
- GetProperty(0x3e, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapX::SetMouseIcon(LPCTSTR propVal)
- {
- SetProperty(0x3e, VT_BSTR, propVal);
- }
- BOOL CMapX::GetInfotipSupport()
- {
- BOOL result;
- GetProperty(0x3f, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapX::SetInfotipSupport(BOOL propVal)
- {
- SetProperty(0x3f, VT_BOOL, propVal);
- }
- short CMapX::GetFeatureEditMode()
- {
- short result;
- GetProperty(0x41, VT_I2, (void*)&result);
- return result;
- }
- void CMapX::SetFeatureEditMode(short propVal)
- {
- SetProperty(0x41, VT_I2, propVal);
- }
- long CMapX::GetCheckEscapeKeyInterval()
- {
- long result;
- GetProperty(0x43, VT_I4, (void*)&result);
- return result;
- }
- void CMapX::SetCheckEscapeKeyInterval(long propVal)
- {
- SetProperty(0x43, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapX operations
- void CMapX::ConvertCoord(float* ScreenX, float* ScreenY, double* MapX, double* MapY, short Direction)
- {
- static BYTE parms[] =
- VTS_PR4 VTS_PR4 VTS_PR8 VTS_PR8 VTS_I2;
- InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ScreenX, ScreenY, MapX, MapY, Direction);
- }
- void CMapX::ZoomTo(double Zoom, double X, double Y)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Zoom, X, Y);
- }
- void CMapX::CreateCustomTool(
- short ToolNumber,
- short Type,
- const VARIANT& Cursor,
- const VARIANT& ShiftCursor,
- const VARIANT& CtrlCursor,
- const VARIANT& bInfoTips)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ToolNumber, Type, &Cursor, &CtrlCursor, &ShiftCursor, &bInfoTips);
- }
- double CMapX::Distance(double X1, double Y1, double X2, double Y2)
- {
- double result;
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0x25, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
- X1, Y1, X2, Y2);
- return result;
- }
- void CMapX::Refresh()
- {
- InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapX::PrintMap(long hDC, long X, long Y, long W, long H)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4;
- InvokeHelper(0x26, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- hDC, X, Y, W, H);
- }
- void CMapX::ExportMap(LPCTSTR Destination, short Format, const VARIANT& Width, const VARIANT& Height)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I2 VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Destination, Format, &Width, &Height);
- }
- void CMapX::PropertyPage()
- {
- InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapX::ConvertCoordV(VARIANT* ScreenX, VARIANT* ScreenY, VARIANT* MapX, VARIANT* MapY, short Direction)
- {
- static BYTE parms[] =
- VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_I2;
- InvokeHelper(0x29, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ScreenX, ScreenY, MapX, MapY, Direction);
- }
- void CMapX::SetSize(long Width, long Height)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x2a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Width, Height);
- }
- BOOL CMapX::IsPointVisible(double X, double Y)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x2b, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- X, Y);
- return result;
- }
- BOOL CMapX::ClipLine(double* X1, double* Y1, double* X2, double* Y2)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_PR8 VTS_PR8 VTS_PR8 VTS_PR8;
- InvokeHelper(0x2c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- X1, Y1, X2, Y2);
- return result;
- }
- BOOL CMapX::ClipLineV(VARIANT* X1, VARIANT* Y1, VARIANT* X2, VARIANT* Y2)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT;
- InvokeHelper(0x2d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- X1, Y1, X2, Y2);
- return result;
- }
- void CMapX::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapX::SaveMapAsGeoset(LPCTSTR Name, LPCTSTR Filespec)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_BSTR;
- InvokeHelper(0x2f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Name, Filespec);
- }
- LPDISPATCH CMapX::GetDispatch(BOOL bAddRef)
- {
- LPUNKNOWN pUnk = GetControlUnknown();
- LPDISPATCH pDispatch;
- if ((pUnk != NULL) && SUCCEEDED(pUnk->QueryInterface(IID_IDispatch, (LPVOID*)&pDispatch))) {
- ASSERT(pDispatch != NULL);
- if (!bAddRef) {
- pDispatch->Release();
- }
- return pDispatch;
- }
- return NULL;
- }
- void CMapX::Pan(float ScreenX, float ScreenY)
- {
- static BYTE parms[] =
- VTS_R4 VTS_R4;
- InvokeHelper(0x40, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ScreenX, ScreenY);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDatasets properties
- LPENUMVARIANT CMapXDatasets::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;
- }
- long CMapXDatasets::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- BOOL CMapXDatasets::GetBuildSourceRows()
- {
- BOOL result;
- GetProperty(0x7, VT_BOOL, &result);
- return result;
- }
- void CMapXDatasets::SetBuildSourceRows(BOOL b)
- {
- SetProperty(0x7, VT_BOOL, b);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDatasets operations
- CMapXDataset CMapXDatasets::Add(long Type, const VARIANT& SourceData, const VARIANT& Name, const VARIANT& GeoField, const VARIANT& SecondaryGeoField, const VARIANT& BindLayer, const VARIANT& Fields, const VARIANT& Dynamic)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Type, &SourceData, &Name, &GeoField, &SecondaryGeoField, &BindLayer, &Fields, &Dynamic);
- return CMapXDataset(result);
- }
- CMapXDataset CMapXDatasets::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXDataset(result);
- }
- void CMapXDatasets::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXDataset CMapXDatasets::Restore(LPCTSTR Name, const VARIANT& SourceData)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Name, &SourceData);
- return CMapXDataset(result);
- }
- void CMapXDatasets::RemoveAll()
- {
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayers properties
- LPENUMVARIANT CMapXLayers::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;
- }
- long CMapXLayers::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayers operations
- void CMapXLayers::ClearSelection()
- {
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- BOOL CMapXLayers::Move(short From, short To)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- From, To);
- return result;
- }
- CMapXLayer CMapXLayers::Add(const VARIANT& LayerInfo, const VARIANT& Position)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &LayerInfo, &Position);
- return CMapXLayer(result);
- }
- void CMapXLayers::AddGeoSetLayers(LPCTSTR GeoSetName)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- GeoSetName);
- }
- CMapXLayer CMapXLayers::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXLayer(result);
- }
- void CMapXLayers::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXLayer CMapXLayers::AddUserDrawLayer(LPCTSTR Name, short Position)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_I2;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Name, Position);
- return CMapXLayer(result);
- }
- CMapXLayer CMapXLayers::GetAnimationLayer()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- void CMapXLayers::SetAnimationLayer(LPDISPATCH propVal)
- {
- SetProperty(0x9, VT_DISPATCH, propVal);
- }
- CMapXRectangle CMapXLayers::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0xc, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- CMapXLayer CMapXLayers::CreateLayer(LPCTSTR Name, const VARIANT& Filespec, const VARIANT& Position, const VARIANT& KeyLength, const VARIANT& CoordSys)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Name, &Filespec, &Position, &KeyLength, &CoordSys);
- return CMapXLayer(result);
- }
- BOOL CMapXLayers::LayersDlg(const VARIANT& HelpFile, const VARIANT& HelpID)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- &HelpFile, &HelpID);
- return result;
- }
- CMapXLayer CMapXLayers::AddServerLayer(LPCTSTR Name, LPCTSTR ConnectString, LPCTSTR Query, const VARIANT& Position, const VARIANT& Options)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_BSTR VTS_BSTR VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Name, ConnectString, Query, &Position, &Options);
- return CMapXLayer(result);
- }
- void CMapXLayers::RemoveAll()
- {
- InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- CMapXLayer CMapXLayers::GetInsertionLayer()
- {
- LPDISPATCH pDispatch;
- GetProperty(0xf, VT_DISPATCH, (void*)&pDispatch);
- return CMapXLayer(pDispatch);
- }
- void CMapXLayers::SetInsertionLayer(LPDISPATCH propVal)
- {
- SetProperty(0xf, VT_DISPATCH, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayer properties
- CString CMapXLayer::GetName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXLayer::SetName(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- BOOL CMapXLayer::GetVisible()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetVisible(BOOL propVal)
- {
- SetProperty(0x2, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetSelectable()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetSelectable(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- CString CMapXLayer::GetFilespec()
- {
- CString result;
- GetProperty(0x4, VT_BSTR, (void*)&result);
- return result;
- }
- CMapXLabelProperties CMapXLayer::GetLabelProperties()
- {
- LPDISPATCH result;
- GetProperty(0x5, VT_DISPATCH, (void*)&result);
- return CMapXLabelProperties(result);
- }
- BOOL CMapXLayer::GetAutoLabel()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetAutoLabel(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetZoomLayer()
- {
- BOOL result;
- GetProperty(0x7, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetZoomLayer(BOOL propVal)
- {
- SetProperty(0x7, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetOverrideStyle()
- {
- BOOL result;
- GetProperty(0x8, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetOverrideStyle(BOOL propVal)
- {
- SetProperty(0x8, VT_BOOL, propVal);
- }
- CMapXStyle CMapXLayer::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXLayer::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x9, VT_DISPATCH, propVal);
- }
- double CMapXLayer::GetZoomMin()
- {
- double result;
- GetProperty(0xa, VT_R8, (void*)&result);
- return result;
- }
- void CMapXLayer::SetZoomMin(double propVal)
- {
- SetProperty(0xa, VT_R8, propVal);
- }
- double CMapXLayer::GetZoomMax()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
- void CMapXLayer::SetZoomMax(double propVal)
- {
- SetProperty(0xb, VT_R8, propVal);
- }
- CMapXSelection CMapXLayer::GetSelection()
- {
- LPDISPATCH result;
- GetProperty(0xc, VT_DISPATCH, (void*)&result);
- return CMapXSelection(result);
- }
- short CMapXLayer::GetPredominantFeatureType()
- {
- short result;
- GetProperty(0xd, VT_I2, (void*)&result);
- return result;
- }
- CMapXLayerFind CMapXLayer::GetFind()
- {
- LPDISPATCH result;
- GetProperty(0xe, VT_DISPATCH, (void*)&result);
- return CMapXLayerFind(result);
- }
- short CMapXLayer::GetType()
- {
- short result;
- GetProperty(0xf, VT_I2, (void*)&result);
- return result;
- }
- CString CMapXLayer::GetKeyField()
- {
- CString result;
- GetProperty(0x10, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXLayer::SetKeyField(LPCTSTR propVal)
- {
- SetProperty(0x10, VT_BSTR, propVal);
- }
- CMapXCoordSys CMapXLayer::GetCoordSys()
- {
- LPDISPATCH result;
- GetProperty(0x11, VT_DISPATCH, (void*)&result);
- return CMapXCoordSys(result);
- }
- CMapXRectangle CMapXLayer::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x20, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- BOOL CMapXLayer::GetDrawLabelsAfter()
- {
- BOOL result;
- GetProperty(0x25, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetDrawLabelsAfter(BOOL propVal)
- {
- SetProperty(0x25, VT_BOOL, propVal);
- }
- CMapXDatasets CMapXLayer::GetDatasets()
- {
- LPDISPATCH result;
- GetProperty(0x27, VT_DISPATCH, (void*)&result);
- return CMapXDatasets(result);
- }
- BOOL CMapXLayer::GetShowNodes()
- {
- BOOL result;
- GetProperty(0x2b, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetShowNodes(BOOL propVal)
- {
- SetProperty(0x2b, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetShowCentroids()
- {
- BOOL result;
- GetProperty(0x2c, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetShowCentroids(BOOL propVal)
- {
- SetProperty(0x2c, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetShowLineDirection()
- {
- BOOL result;
- GetProperty(0x2d, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetShowLineDirection(BOOL propVal)
- {
- SetProperty(0x2d, VT_BOOL, propVal);
- }
- BOOL CMapXLayer::GetEditable()
- {
- BOOL result;
- GetProperty(0x2e, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayer::SetEditable(BOOL propVal)
- {
- SetProperty(0x2e, VT_BOOL, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayer operations
- void CMapXLayer::LabelAtPoint(double X, double Y)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X, Y);
- }
- void CMapXLayer::ClearCustomLabels()
- {
- InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- CMapXFeature CMapXLayer::AddFeature(LPDISPATCH Source, const VARIANT& RowValues)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0x15, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Source, &RowValues);
- return CMapXFeature(result);
- }
- void CMapXLayer::UpdateFeature(
- const VARIANT& Target,
- const VARIANT& Source,
- const VARIANT& RowValues)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Target, &Source, &RowValues);
- }
- void CMapXLayer::DeleteFeature(const VARIANT& Target)
- {
- static BYTE parms[] = VTS_VARIANT;
- InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, parms, &Target);
- }
- void CMapXLayer::Invalidate(const VARIANT& InvalidRect)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &InvalidRect);
- }
- CMapXFeatures CMapXLayer::SearchWithinDistance(LPDISPATCH Source, double Distance, short Units, short SearchType)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_R8 VTS_I2 VTS_I2;
- InvokeHelper(0x18, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Source, Distance, Units, SearchType);
- return CMapXFeatures(result);
- }
- CMapXFeatures CMapXLayer::SearchWithinRectangle(LPDISPATCH Rectangle, short SearchType)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_I2;
- InvokeHelper(0x19, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Rectangle, SearchType);
- return CMapXFeatures(result);
- }
- CMapXFeatures CMapXLayer::AllFeatures()
- {
- LPDISPATCH result;
- InvokeHelper(0x1a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXFeatures(result);
- }
- CMapXFeatures CMapXLayer::NoFeatures()
- {
- LPDISPATCH result;
- InvokeHelper(0x1b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXFeatures(result);
- }
- CMapXFeatures CMapXLayer::SearchWithinFeature(LPDISPATCH Feature, short SearchType)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_I2;
- InvokeHelper(0x1c, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Feature, SearchType);
- return CMapXFeatures(result);
- }
- CMapXFeatures CMapXLayer::SearchAtPoint(LPDISPATCH Point)
- {
- LPDISPATCH result;
- static BYTE parms[] = VTS_DISPATCH;
- InvokeHelper(0x1d, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Point);
- return CMapXFeatures(result);
- }
- void CMapXLayer::DrillDownRemoveFeatures(LPCTSTR Level, const VARIANT& FeatureKeys)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Level, &FeatureKeys);
- }
- void CMapXLayer::DrillDownAddFeatures(LPCTSTR Level, const VARIANT& FeatureKeys)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Level, &FeatureKeys);
- }
- CMapXFeatures CMapXLayer::GetDrilldownFeaturesByID(LPCTSTR Level, const VARIANT& FeatureKeys)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x21, DISPATCH_METHOD, VT_DISPATCH, (void *)&result, parms,
- Level, &FeatureKeys);
- return CMapXFeatures(result);
- }
- void CMapXLayer::DrilldownReset(LPCTSTR Level)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Level);
- }
- CMapXFeature CMapXLayer::GetFeatureByID(long FeatureID)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x23, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- FeatureID);
- return CMapXFeature(result);
- }
- void CMapXLayer::Refresh()
- {
- InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- long CMapXLayer::FeatureIDFromFeatureName(LPCTSTR Name)
- {
- long result;
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x26, DISPATCH_METHOD, VT_I4, &result, parms, Name);
- return result;
- }
- CMapXFeatures CMapXLayer::Search(LPCTSTR strWhere, const VARIANT& Variables)
- {
- LPDISPATCH result;
- static BYTE parms[] = VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x28, DISPATCH_METHOD, VT_DISPATCH, (void *)&result, parms, strWhere, &Variables);
- return CMapXFeatures(result);
- }
- void CMapXLayer::BeginAccess(long BeginAccessType)
- {
- static BYTE parms[] = VTS_I2;
- InvokeHelper(0x29, DISPATCH_METHOD, VT_EMPTY, NULL, parms, BeginAccessType);
- }
- void CMapXLayer::EndAccess(const VARIANT& EndAccessType)
- {
- static BYTE parms[] = VTS_VARIANT;
- InvokeHelper(0x2a, DISPATCH_METHOD, VT_EMPTY, NULL, parms, &EndAccessType);
- }
- CMapXFeature CMapXLayer::GetFeatureByKey(LPCTSTR FeatureKey)
- {
- LPDISPATCH result;
- static BYTE parms[] = VTS_BSTR;
- InvokeHelper(0x2f, DISPATCH_METHOD, VT_DISPATCH, (void *)&result, parms, FeatureKey);
- return CMapXFeature(result);
- }
- CString CMapXLayer::FeatureKeyFromFeatureName(LPCTSTR strKeyValue)
- {
- CString result;
- static BYTE parms[] = VTS_BSTR;
- InvokeHelper(0x30, DISPATCH_METHOD, VT_BSTR, (void *)&result, parms, strKeyValue);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXField properties
- long CMapXField::GetType()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CString CMapXField::GetName()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- long CMapXField::GetAggregationFunction()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
- short CMapXField::GetWidth()
- {
- short result;
- GetProperty(0x4, VT_I2, (void*)&result);
- return result;
- }
- short CMapXField::GetPrecision()
- {
- short result;
- GetProperty(0x5, VT_I2, (void*)&result);
- return result;
- }
- short CMapXField::GetDecimals()
- {
- short result;
- GetProperty(0x6, VT_I2, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXField operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDataset properties
- CString CMapXDataset::GetName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXDataset::SetName(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- long CMapXDataset::GetRowCount()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- CMapXFields CMapXDataset::GetFields()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return CMapXFields(result);
- }
- CMapXThemes CMapXDataset::GetThemes()
- {
- LPDISPATCH result;
- GetProperty(0x4, VT_DISPATCH, (void*)&result);
- return CMapXThemes(result);
- }
- long CMapXDataset::GetGeoField()
- {
- long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
- long CMapXDataset::GetSecondaryGeoField()
- {
- long result;
- GetProperty(0x6, VT_I4, (void*)&result);
- return result;
- }
- CMapXLayer CMapXDataset::GetLayer()
- {
- LPDISPATCH result;
- GetProperty(0x7, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- short CMapXDataset::GetType()
- {
- short result;
- GetProperty(0xb, VT_I2, (void*)&result);
- return result;
- }
- BOOL CMapXDataset::GetReadOnly()
- {
- BOOL result;
- GetProperty(0xc, VT_BOOL, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDataset operations
- void CMapXDataset::Refresh()
- {
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- VARIANT CMapXDataset::GetValue(const VARIANT& Row, const VARIANT& Column)
- {
- VARIANT result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
- &Row, &Column);
- return result;
- }
- CMapXSourceRows CMapXDataset::GetSourceRows(const VARIANT& Row)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
- &Row);
- return CMapXSourceRows(result);
- }
- CMapXRowValues CMapXDataset::GetRowValues(const VARIANT& Row)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms, &Row);
- return CMapXRowValues(result);
- }
- CMapXField CMapXDataset::AddField(LPCTSTR Name, LPCTSTR Expression)
- {
- LPDISPATCH result;
- static BYTE parms[] = VTS_BSTR VTS_BSTR;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, Name, Expression);
- return CMapXField(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXThemes properties
- LPENUMVARIANT CMapXThemes::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;
- }
- long CMapXThemes::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXThemes operations
- CMapXTheme CMapXThemes::Add(const VARIANT& Type, const VARIANT& Field, const VARIANT& Name, const VARIANT& ComputeTheme)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Type, &Field, &Name, &ComputeTheme);
- return CMapXTheme(result);
- }
- CMapXTheme CMapXThemes::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXTheme(result);
- }
- void CMapXThemes::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- void CMapXThemes::RemoveAll()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXTheme properties
- BOOL CMapXTheme::GetVisible()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTheme::SetVisible(BOOL propVal)
- {
- SetProperty(0x1, VT_BOOL, propVal);
- }
- short CMapXTheme::GetType()
- {
- short result;
- GetProperty(0x2, VT_I2, (void*)&result);
- return result;
- }
- CMapXThemeProperties CMapXTheme::GetProperties()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return CMapXThemeProperties(result);
- }
- CMapXLegend CMapXTheme::GetLegend()
- {
- LPDISPATCH result;
- GetProperty(0x4, VT_DISPATCH, (void*)&result);
- return CMapXLegend(result);
- }
- BOOL CMapXTheme::GetAutoRecompute()
- {
- BOOL result;
- GetProperty(0x5, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTheme::SetAutoRecompute(BOOL propVal)
- {
- SetProperty(0x5, VT_BOOL, propVal);
- }
- CString CMapXTheme::GetName()
- {
- CString result;
- GetProperty(0x6, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXTheme::SetName(LPCTSTR propVal)
- {
- SetProperty(0x6, VT_BSTR, propVal);
- }
- CMapXThemeProperties CMapXTheme::GetThemeProperties()
- {
- LPDISPATCH result;
- GetProperty(0x7, VT_DISPATCH, (void*)&result);
- return CMapXThemeProperties(result);
- }
- CMapXLayer CMapXTheme::GetLayer()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- CMapXFields CMapXTheme::GetFields()
- {
- LPDISPATCH result;
- GetProperty(0xa, VT_DISPATCH, (void*)&result);
- return CMapXFields(result);
- }
- double CMapXTheme::GetDataMin()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
- void CMapXTheme::SetDataMin(double propVal)
- {
- SetProperty(0xb, VT_R8, propVal);
- }
- double CMapXTheme::GetDataMax()
- {
- double result;
- GetProperty(0xc, VT_R8, (void*)&result);
- return result;
- }
- void CMapXTheme::SetDataMax(double propVal)
- {
- SetProperty(0xc, VT_R8, propVal);
- }
- BOOL CMapXTheme::GetComputeTheme()
- {
- BOOL result;
- GetProperty(0xd, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTheme::SetComputeTheme(BOOL propVal)
- {
- SetProperty(0xd, VT_BOOL, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXTheme operations
- BOOL CMapXTheme::ThemeDlg(const VARIANT& HelpFile, const VARIANT& HelpID)
- {
- BOOL bRetVal;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_BOOL, (void*)&bRetVal, parms,
- &HelpFile, &HelpID);
- return bRetVal;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLegend properties
- BOOL CMapXLegend::GetCompact()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLegend::SetCompact(BOOL propVal)
- {
- SetProperty(0x1, VT_BOOL, propVal);
- }
- BOOL CMapXLegend::GetVisible()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLegend::SetVisible(BOOL propVal)
- {
- SetProperty(0x2, VT_BOOL, propVal);
- }
- CMapXStyle CMapXLegend::GetTitleStyle()
- {
- 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()
- {
- 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
- LPENUMVARIANT CMapXSelection::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;
- }
- long CMapXSelection::GetCount()
- {
- long result;
- GetProperty(0x10001, VT_I4, (void*)&result);
- return result;
- }
- CMapXRectangle CMapXSelection::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x10008, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXSelection operations
- CMapXFeature CMapXSelection::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x10002, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXFeature(result);
- }
- CMapXFeatures CMapXSelection::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x10003, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXFeatures(result);
- }
- void CMapXSelection::Add(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x10004, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXSelection::Common(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x10005, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXSelection::Remove(const VARIANT& Source)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x10006, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Source);
- }
- void CMapXSelection::Replace(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x10007, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXSelection::AddByID(const VARIANT& FeatureID)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x10009, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FeatureID);
- }
- void CMapXSelection::RemoveByID(const VARIANT& FeatureID)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x1000a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FeatureID);
- }
- void CMapXSelection::SelectByRegion(LPDISPATCH Layer, const VARIANT& FeatureID, short Flag)
- {
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT VTS_I2;
- InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Layer, &FeatureID, Flag);
- }
- void CMapXSelection::ClearSelection()
- {
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXSelection::SelectByPoint(double X, double Y, short Flag)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_I2;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X, Y, Flag);
- }
- void CMapXSelection::SelectByRadius(double X, double Y, double radius, short Flag)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_I2;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X, Y, radius, Flag);
- }
- void CMapXSelection::SelectByRectangle(double X1, double Y1, double X2, double Y2, short Flag)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_I2;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X1, Y1, X2, Y2, Flag);
- }
- BOOL CMapXSelection::SelectAll(short Flag)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- Flag);
- return result;
- }
- void CMapXSelection::SelectByID(const VARIANT& FeatureID, short Flag)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_I2;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FeatureID, Flag);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeature properties
- long CMapXFeature::GetFeatureID()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- short CMapXFeature::GetType()
- {
- short result;
- GetProperty(0x2, VT_I2, (void*)&result);
- return result;
- }
- void CMapXFeature::SetType(short propVal)
- {
- SetProperty(0x2, VT_I2, propVal);
- }
- double CMapXFeature::GetLength()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- double CMapXFeature::GetCenterX()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- double CMapXFeature::GetCenterY()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- CMapXStyle CMapXFeature::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x6, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXFeature::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
- CMapXRectangle CMapXFeature::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x7, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- CString CMapXFeature::GetCaption()
- {
- CString result;
- GetProperty(0x8, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXFeature::SetCaption(LPCTSTR propVal)
- {
- SetProperty(0x8, VT_BSTR, propVal);
- }
- CMapXParts CMapXFeature::GetParts()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXParts(result);
- }
- double CMapXFeature::GetArea()
- {
- double result;
- GetProperty(0xa, VT_R8, (void*)&result);
- return result;
- }
- CMapXLayer CMapXFeature::GetLayer()
- {
- LPDISPATCH result;
- GetProperty(0xb, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- CMapXPoint CMapXFeature::GetPoint()
- {
- LPDISPATCH result;
- GetProperty(0xc, VT_DISPATCH, (void*)&result);
- return CMapXPoint(result);
- }
- void CMapXFeature::SetPoint(LPDISPATCH propVal)
- {
- SetProperty(0xc, VT_DISPATCH, propVal);
- }
- CMapXPoint CMapXFeature::GetLabelPoint()
- {
- LPDISPATCH result;
- GetProperty(0xd, VT_DISPATCH, (void*)&result);
- return CMapXPoint(result);
- }
- double CMapXFeature::GetPerimeter()
- {
- double result;
- GetProperty(0xe, VT_R8, (void*)&result);
- return result;
- }
- BOOL CMapXFeature::GetSmooth()
- {
- BOOL result;
- GetProperty(0xf, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXFeature::SetSmooth(BOOL propVal)
- {
- SetProperty(0xf, VT_BOOL, propVal);
- }
- CString CMapXFeature::GetName()
- {
- CString result;
- GetProperty(0x10, VT_BSTR, (void*)&result);
- return result;
- }
- CString CMapXFeature::GetKeyValue()
- {
- CString result;
- GetProperty(0x11, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXFeature::SetKeyValue(LPCTSTR propVal)
- {
- SetProperty(0x11, VT_BSTR, propVal);
- }
- CString CMapXFeature::GetFeatureKey()
- {
- CString result;
- GetProperty(0x17, VT_BSTR, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeature operations
- void CMapXFeature::Update(const VARIANT& UpdateFeature, const VARIANT& RowValues)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms, &UpdateFeature, &RowValues);
- }
- void CMapXFeature::Offset(double deltaX, double deltaY)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- deltaX, deltaY);
- }
- void CMapXFeature::Attach(LPDISPATCH Map)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms, Map);
- }
- CMapXFeature CMapXFeature::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x15, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXFeature(result);
- }
- VARIANT CMapXFeature::Nodes(const VARIANT& CSys)
- {
- VARIANT result;
- static BYTE parms[] = VTS_VARIANT;
- InvokeHelper(0x16, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms, &CSys);
- return result;
- }
- VARIANT CMapXFeature::GetNodes(const VARIANT& CSys)
- {
- VARIANT result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
- &CSys);
- return result;
- }
- void CMapXFeature::SetNodes(const VARIANT& CSys, const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &CSys, &newValue);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeatureFactory properties
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeatureFactory operations
- CMapXFeature CMapXFeatureFactory::BufferFeatures(LPDISPATCH Source, double Distance, const VARIANT& Units, const VARIANT& Resolution)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_R8 VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x1, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Source, Distance, &Units, &Resolution);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CombineFeatures(LPDISPATCH Source1, const VARIANT& Source2)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Source1, &Source2);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::IntersectFeatures(LPDISPATCH Source1, const VARIANT& Source2)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Source1, &Source2);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::EraseFeature(LPDISPATCH Feature, LPDISPATCH EraserFeature)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_DISPATCH;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Feature, EraserFeature);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateSymbol(const VARIANT& Point, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Point, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateRegion(const VARIANT& Points, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Points, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateLine(const VARIANT& Points, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Points, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateText(const VARIANT& Point, const VARIANT& Caption, const VARIANT& Position, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Point, &Caption, &Position, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateArc(LPDISPATCH Point1, LPDISPATCH Point2, const VARIANT& Angle, const VARIANT& Distance, const VARIANT& Resolution, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_DISPATCH VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Point1, Point2, &Angle, &Distance, &Resolution, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateEllipticalRegion(LPDISPATCH Rectangle, const VARIANT& Angle, const VARIANT& Resolution, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Rectangle, &Angle, &Resolution, &Style);
- return CMapXFeature(result);
- }
- CMapXFeature CMapXFeatureFactory::CreateCircularRegion(short Type, LPDISPATCH Point, double Distance, const VARIANT& Units, const VARIANT& Resolution, const VARIANT& Style)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_I2 VTS_DISPATCH VTS_R8 VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Type, Point, Distance, &Units, &Resolution, &Style);
- return CMapXFeature(result);
- }
- BOOL CMapXFeatureFactory::IntersectionTest(LPDISPATCH Feature1, LPDISPATCH Feature2, const VARIANT& Flag)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- Feature1, Feature2, &Flag);
- return result;
- }
- CMapXPoints CMapXFeatureFactory::IntersectionPoints(LPDISPATCH Feature1, LPDISPATCH Feature2, const VARIANT& Flag)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Feature1, Feature2, &Flag);
- return CMapXPoints(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRangeCategory properties
- double CMapXRangeCategory::GetMin()
- {
- double result;
- GetProperty(0x1, VT_R8, (void*)&result);
- return result;
- }
- void CMapXRangeCategory::SetMin(double propVal)
- {
- SetProperty(0x1, VT_R8, propVal);
- }
- double CMapXRangeCategory::GetMax()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- void CMapXRangeCategory::SetMax(double propVal)
- {
- SetProperty(0x2, VT_R8, propVal);
- }
- long CMapXRangeCategory::GetNumItems()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
- CMapXStyle CMapXRangeCategory::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x4, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXRangeCategory::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x4, VT_DISPATCH, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRangeCategory operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFields properties
- LPENUMVARIANT CMapXFields::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;
- }
- long CMapXFields::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFields operations
- CMapXField CMapXFields::Add(const VARIANT& SourceField, const VARIANT& Name, const VARIANT& AggregationFunction, const VARIANT& Type)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &SourceField, &Name, &AggregationFunction, &Type);
- return CMapXField(result);
- }
- CMapXField CMapXFields::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXField(result);
- }
- void CMapXFields::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- void CMapXFields::RemoveAll()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- CMapXField CMapXFields::AddStringField(const VARIANT& Name, const VARIANT& Width)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name, &Width);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddLogicalField(const VARIANT& Name)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddIntegerField(const VARIANT& Name)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddSmallIntField(const VARIANT& Name)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddNumericField(const VARIANT& Name, const VARIANT& Precision, const VARIANT& Decimals)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name, &Precision, &Decimals);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddFloatField(const VARIANT& Name)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name);
- return CMapXField(result);
- }
- CMapXField CMapXFields::AddDateField(const VARIANT& Name)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Name);
- return CMapXField(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // COleFont properties
- CString COleFont::GetName()
- {
- CString result;
- GetProperty(0x0, VT_BSTR, (void*)&result);
- return result;
- }
- void COleFont::SetName(LPCTSTR propVal)
- {
- SetProperty(0x0, VT_BSTR, propVal);
- }
- CY COleFont::GetSize()
- {
- CY result;
- GetProperty(0x2, VT_CY, (void*)&result);
- return result;
- }
- void COleFont::SetSize(const CY& propVal)
- {
- SetProperty(0x2, VT_CY, &propVal);
- }
- BOOL COleFont::GetBold()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void COleFont::SetBold(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- BOOL COleFont::GetItalic()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
- void COleFont::SetItalic(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
- BOOL COleFont::GetUnderline()
- {
- BOOL result;
- GetProperty(0x5, VT_BOOL, (void*)&result);
- return result;
- }
- void COleFont::SetUnderline(BOOL propVal)
- {
- SetProperty(0x5, VT_BOOL, propVal);
- }
- BOOL COleFont::GetStrikethrough()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void COleFont::SetStrikethrough(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- short COleFont::GetWeight()
- {
- short result;
- GetProperty(0x7, VT_I2, (void*)&result);
- return result;
- }
- void COleFont::SetWeight(short propVal)
- {
- SetProperty(0x7, VT_I2, propVal);
- }
- short COleFont::GetCharset()
- {
- short result;
- GetProperty(0x8, VT_I2, (void*)&result);
- return result;
- }
- void COleFont::SetCharset(short propVal)
- {
- SetProperty(0x8, VT_I2, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // COleFont operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXStyle properties
- short CMapXStyle::GetSymbolCharacter()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolCharacter(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
- unsigned long CMapXStyle::GetLineColor()
- {
- unsigned long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetLineColor(unsigned long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
- short CMapXStyle::GetLineStyle()
- {
- short result;
- GetProperty(0x3, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetLineStyle(short propVal)
- {