📄 cmapx.h
字号:
#if !defined(AFX_CMAPX_H__12DE6CBB_B3E2_4CFD_A372_1796417CD515__INCLUDED_)
#define AFX_CMAPX_H__12DE6CBB_B3E2_4CFD_A372_1796417CD515__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
// Dispatch interfaces referenced by this interface
class CCMapXAnnotations;
class CCMapXLayers;
class CCMapXStyle;
class CCMapXDatasets;
class CCMapXTitle;
class CCMapXGeosets;
class CCMapXRectangle;
class CCMapXCoordSys;
class CCMapXFeatureFactory;
/////////////////////////////////////////////////////////////////////////////
// CCMapX wrapper class
class CCMapX : public CWnd
{
protected:
DECLARE_DYNCREATE(CCMapX)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x9d6ed188, 0x5910, 0x11d2, { 0x98, 0xa6, 0x0, 0xa0, 0xc9, 0x74, 0x2c, 0xca } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }
// Attributes
public:
CString GetDataSetGeoField();
void SetDataSetGeoField(LPCTSTR);
CString GetVersion();
OLE_HANDLE GetHWnd();
CCMapXAnnotations GetAnnotations();
LPUNKNOWN GetDataset();
void SetDataset(LPUNKNOWN);
CCMapXLayers GetLayers();
BOOL GetAutoRedraw();
void SetAutoRedraw(BOOL);
double GetZoom();
void SetZoom(double);
double GetCenterX();
void SetCenterX(double);
double GetCenterY();
void SetCenterY(double);
CString GetGeoset();
void SetGeoset(LPCTSTR);
double GetGeoSetWidth();
double GetMapPaperHeight();
double GetMapPaperWidth();
short GetMaxSearchTime();
void SetMaxSearchTime(short);
long GetPaperUnit();
void SetPaperUnit(long);
BOOL GetPreferCompactLegends();
void SetPreferCompactLegends(BOOL);
CCMapXStyle GetDefaultStyle();
void SetDefaultStyle(LPDISPATCH);
CString GetGeoDictionary();
void SetGeoDictionary(LPCTSTR);
long GetDataSetTheme();
void SetDataSetTheme(long);
long GetCurrentTool();
void SetCurrentTool(long);
long GetMousePointer();
void SetMousePointer(long);
CCMapXDatasets GetDatasets();
CCMapXTitle GetTitle();
CString GetTitleText();
void SetTitleText(LPCTSTR);
long GetMapUnit();
void SetMapUnit(long);
double GetRotation();
void SetRotation(double);
CCMapXGeosets GetGeosets();
long GetAreaUnit();
void SetAreaUnit(long);
CCMapXRectangle GetBounds();
void SetBounds(LPDISPATCH);
CCMapXCoordSys GetDisplayCoordSys();
void SetDisplayCoordSys(LPDISPATCH);
CCMapXCoordSys GetNumericCoordSys();
void SetNumericCoordSys(LPDISPATCH);
BOOL GetExportSelection();
void SetExportSelection(BOOL);
CCMapXStyle GetSelectionStyle();
void SetSelectionStyle(LPDISPATCH);
CCMapXFeatureFactory GetFeatureFactory();
long GetDefaultConversionResolution();
void SetDefaultConversionResolution(long);
OLE_COLOR GetBackColor();
void SetBackColor(OLE_COLOR);
long GetMousewheelSupport();
void SetMousewheelSupport(long);
BOOL GetMatchNumericFields();
void SetMatchNumericFields(BOOL);
float GetMapScreenWidth();
float GetMapScreenHeight();
long GetRedrawInterval();
void SetRedrawInterval(long);
CString GetSearchPath();
void SetSearchPath(LPCTSTR);
short GetMatchThreshold();
void SetMatchThreshold(short);
BOOL GetWaitCursorEnabled();
void SetWaitCursorEnabled(BOOL);
BOOL GetPanAnimationLayer();
void SetPanAnimationLayer(BOOL);
long GetInfotipPopupDelay();
void SetInfotipPopupDelay(long);
CString GetMouseIcon();
void SetMouseIcon(LPCTSTR);
BOOL GetInfotipSupport();
void SetInfotipSupport(BOOL);
short GetFeatureEditMode();
void SetFeatureEditMode(short);
// Operations
public:
void ConvertCoord(float* ScreenX, float* ScreenY, double* MapX, double* MapY, short Direction);
void ZoomTo(double Zoom, double X, double Y);
void CreateCustomTool(short ToolNumber, short Type, const VARIANT& Cursor, const VARIANT& ShiftCursor, const VARIANT& CtrlCursor, const VARIANT& bInfoTips);
double Distance(double X1, double Y1, double X2, double Y2);
void Refresh();
void PrintMap(long hDC, long X, long Y, long W, long H);
void ExportMap(LPCTSTR Destination, short Format, const VARIANT& Width, const VARIANT& Height);
void PropertyPage();
void ConvertCoordV(VARIANT* ScreenX, VARIANT* ScreenY, VARIANT* MapX, VARIANT* MapY, short Direction);
void SetSize(long Width, long Height);
BOOL IsPointVisible(double X, double Y);
BOOL ClipLine(double* X1, double* Y1, double* X2, double* Y2);
BOOL ClipLineV(VARIANT* X1, VARIANT* Y1, VARIANT* X2, VARIANT* Y2);
void SaveMapAsGeoset(LPCTSTR Name, LPCTSTR Filespec);
void Pan(float ScreenX, float ScreenY);
void AboutBox();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CMAPX_H__12DE6CBB_B3E2_4CFD_A372_1796417CD515__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -