#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::S