shmily
路人甲
路人甲
  • 注册日期2008-03-30
  • 发帖数6
  • QQ
  • 铜币127枚
  • 威望-1点
  • 贡献值0点
  • 银元0个
阅读:1424回复:0

求助

楼主#
更多 发布于:2008-06-18 18:52
<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>
喜欢0 评分0
游客

返回顶部