|
阅读:1030回复:1
新手求助:在MO里面怎样得出鼠标略过时的坐标的经纬度
<P>初学MO,遇到难题,我想在鼠标略过图的时候能显示图中点的经纬度,不知道可以不可以实现,我实现了地图坐标的显示,但是就是不知道怎么再转换成经纬度,有哪位大侠帮帮我,给我点思路。</P>
|
|
|
1楼#
发布于:2005-03-27 21:28
<P>VC的:void CEasyMapView::OnMouseMoveMap1(short Button, short Shift, long X, long Y)</P><P>{ CMoPoint pt(m_map.ToMapPoint((float)X, (float)Y));
CString cur,curX,curY;</P><P> Xe=pt.GetX(); Yn=pt.GetY();</P><P> cur.Format("%.5lf,%.5lf",Xe,Yn); cur="经纬度:"+cur;</P><P>CMainFrame* pFrame=(CMainFrame*)AfxGetMainWnd(); pFrame->m_wndStatusBar.SetPaneText(0,cur);}</P><P>可以参考一下:)</P> |
|
|