我在CMainFrame中使用
m_wndStatusBar.SetPaneInfo(1,ID_SEPARATOR,SBPS_NORMAL,200);
我想把鼠标当前的坐标点显示在状态栏中
然后我加入了如下代码:
void CMainFrame::OnLButtonMove(UINT nFlags, CPoint point)
{
char str[32];
sprintf(str,"%d %d",point.x,point.y);
m_wndStatusBar.SetPaneText(1,str);
CFrameWnd::OnLButtonMove(nFlags, point);
}
但是在状态栏上并没有显示鼠标坐标,是怎么回事呢?
请各位高手指教!
m_wndStatusBar.SetPaneInfo(1,ID_SEPARATOR,SBPS_NORMAL,200);
我想把鼠标当前的坐标点显示在状态栏中
然后我加入了如下代码:
void CMainFrame::OnLButtonMove(UINT nFlags, CPoint point)
{
char str[32];
sprintf(str,"%d %d",point.x,point.y);
m_wndStatusBar.SetPaneText(1,str);
CFrameWnd::OnLButtonMove(nFlags, point);
}
但是在状态栏上并没有显示鼠标坐标,是怎么回事呢?
请各位高手指教!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货