16,470
社区成员
发帖
与我相关
我的任务
分享
void CStyleView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
CString str;
str.Format(L"x:%d,y:d%",point.x,point.y);
((CMainFrame*)GetParent())->m_wndStatusBar.SetWindowText(str);
CView::OnMouseMove(nFlags, point);
}
我的环境是VS2010 可以正常编译但是我把鼠标一移动到窗口中就会报错: