www.pudn.com > AddFeature1.rar
To Read all the content
[file head]:
#include "stdafx.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*)&amt;result);
return result;
}
void CMapX::SetDataSetGeoField(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
CString CMapX::GetVersion()
{
CString result;
GetProperty(0x2, VT_BSTR, (void*)&amt;result);
return result;
}
OLE_HANDLE CMapX::GetHWnd()
{
OLE_HANDLE result;
GetProperty(DISPID_HWND, VT_I4, (void*)&amt;result);
return result;
}
CMapXAnnotations CMapX::GetAnnotations()
{
LPDISPATCH result;
GetProperty(0x3, VT_DISPATCH, (void*)&amt;result);
return CMapXAnnotations(result);
}
CMapXLayers CMapX::GetLayers()
{
LPDISPATCH result;
GetProperty(0x5, VT_DISPATCH
... ...
[file tail]:
... ...
TS_BSTR VTS_VARIANT;
InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&amt;result, parms,
Name, &amt;Value);
return CMapXVariable(result);
}
void CMapXVariables::RemoveAll()
{
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CMapXVariables CMapXVariables::Clone()
{
LPDISPATCH result;
InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&amt;result, NULL);
return CMapXVariables(result);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXVariable properties
CString CMapXVariable::GetName()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&amt;result);
return result;
}
VARIANT CMapXVariable::GetValue()
{
VARIANT result;
GetProperty(0x2, VT_VARIANT, (void*)&amt;result);
return result;
}
void CMapXVariable::SetValue(const VARIANT&amt; propVal)
{
SetProperty(0x2, VT_VARIANT, &amt;propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CMapXVariable operations