⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapx.cpp

📁 一个mapxmobile+gps的小程序,需要先安装mapx mobile
💻 CPP
📖 第 1 页 / 共 5 页
字号:
#include "stdafx.h"
#include <afxconv.h>
#include "mapx.h"

/////////////////////////////////////////////////////////////////////////////
// CMapX

#ifdef CWND_MAPX
IMPLEMENT_DYNCREATE(CMapX, CWnd)
#endif

/////////////////////////////////////////////////////////////////////////////
// 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);
}

BOOL CMapX::GetReuseEquivalentOnRestore()
{
 	BOOL result;
	GetProperty(0x45, VT_BOOL, (void*)&result);
	return result;
}

void CMapX::SetReuseEquivalentOnRestore(BOOL b)
{
	SetProperty(0x45, VT_BOOL, b);
}


long CMapX::GetCheckEscapeKeyInterval()
{
	long result;
	GetProperty(0x43, VT_I4, (void*)&result);
	return result;
}

void CMapX::SetCheckEscapeKeyInterval(long propVal)
{
	SetProperty(0x43, VT_I4, propVal);
}

BOOL CMapX::GetSnapToNodeSupport()
{
	BOOL result;
	GetProperty(0x46, VT_BOOL, (void*)&result);
	return result;
}

void CMapX::SetSnapToNodeSupport(BOOL b)
{
	SetProperty(0x46, VT_BOOL, b);
}

short CMapX::GetSnapTolerance()
{
	short result;
	GetProperty(0x47, VT_I2, (void*)&result);
	return result;
}

void CMapX::SetSnapTolerance(short propVal)
{
	SetProperty(0x47, VT_I2, propVal);
}

BOOL CMapX::GetDynamicSelectionSupport()
{
	BOOL result;
	GetProperty(0x48, VT_BOOL, (void*)&result);
	return result;
}

void CMapX::SetDynamicSelectionSupport(BOOL b)
{
	SetProperty(0x48, VT_BOOL, b);
}

BOOL CMapX::GetLabelsAreEditable()
{
	BOOL result;
	GetProperty(0x4C, VT_BOOL, (void*)&result);
	return result;
}

void CMapX::SetLabelsAreEditable(BOOL b)
{

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -