阅读:1541回复:0
求助
<P>为什么不在状态栏显示鼠标的坐标?代码如下,编译没有错误。</P>
<P>void CGeoExpertView::OnMouseMove(UINT nFlags, CPoint point) <BR>{<BR> // TOD Add your message handler code here and/or call default<BR> CString str;<BR> CMainFrame*pFrame=(CMainFrame*)AfxGetApp()->m_pMainWnd;<BR> CStatusBar*pStatus=;pFrame->m_wndStatusBar;<BR> if(pStatus)<BR> {<BR> str.Format("X=%d,Y=%d",point.x,point.y);<BR> pStatus->SetPaneText(2,str);<BR> }<BR> CView::OnMouseMove(nFlags, point);<BR>}</P> |
|