求助,状态栏显示鼠标位置的问题
在单文本文档中状态栏显示鼠标位置下面程序可实现:void CGgggView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CString str;
str.Format("x=%d,y=%d",point.x,point.y);
((CMainFrame*)GetParent())->m_wndStatusBar.SetPaneInfo(1,ID_INDICATOR_MOUSEPOINT,SBPS_NORMAL,160);
((CMainFrame*)GetParent())->m_wndStatusBar.SetPaneText(1,str);
CView::OnMouseMove(nFlags, point);
}
但是如果是切分了窗口的文档就会出错,请问切分了窗口的文档要怎么写呢?