var ctrlman = m_Map.GetCtrlMan(); var ctrlstate = ctrlman.GetControlState(); var posLL = ctrlstate.GetLLCenter(); var x = posLL.GetX(); var y = posLL.GetY(); alert(y);
CXControlState ctrlstate = ctrlman.GetControlState(); CXPoint posLL = ctrlstate.GetLLCenter(); long x = posLL.GetX(); long y = posLL.GetY(); CString msg; msg.Format(_T("X : %d, Y: %d"),x,y); AfxMessageBox(msg);