我想在状态栏显示鼠标坐标
这样行吗?
void CCheckView::OnMouseMove(UINT nFlags, CPoint point)
{
CMainFrame* pFrame = (CMainFrame*)AfxGetApp()->GetMainWnd();
CString strMsg;
strMsg.Format("x=d%,y=d%",point.x,point.y);
pFrame->m_wndStatusBar.SetPaneText(0,strMsg);
CFormView::OnMouseMove(nFlags, point);
}