:mapx之vc自定义测距工具(PolyToolUsed事件) :VC6+mapx4.5+win2000 : www.51gis.com //1.定义常量 #define MYTOOL_DISTANCE 100 //1~999 //2.创建工具 m_ctrlMap.CreateCustomTool(MYTOOL_DISTANCE,miToolTypePoly,miCrossCursor); //3.响应事件 void CMapXSampleView::OnPolyToolUsedMap(short ToolNum, long Flags, LPDISPATCH Points, BOOL bShift,BOOL bCtrl,BOOL FAR* EnableDefault) { //计算距...
[ 查看全文 ]