15,979
社区成员
发帖
与我相关
我的任务
分享
void CFixSplitterWnd::OnLButtonDown(UINT nFlags, CPoint point)
{
if(!m_block)
CSplitterWnd::OnLButtonDown(nFlags, point);
else
CWnd::OnLButtonDown(nFlags, point);
}
void CFixSplitterWnd::OnMouseMove(UINT nFlags, CPoint point)
{
if(!m_block)
CSplitterWnd::OnMouseMove(nFlags, point);
else
CWnd::OnMouseMove(nFlags, point);
}
BOOL CFixSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if(!m_block)
return CSplitterWnd::OnSetCursor(pWnd, nHitTest, message);
else
return CWnd::OnSetCursor(pWnd, nHitTest, message);
}
void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
/*
CDC *pDC=GetDC();
CRect rect;
GetClientRect(rect);
pDC->SetMapMode(MM_LOMETRIC); //设置坐标系单位
pDC->SetViewportOrg(50,rect.bottom-50);//原点
pDC->DPtoLP(&point);
point.x=point.x*MUL;
point.y=point.y*MUL;
CString strPos;
strPos.Format("X:%d""Y:%d",point.x,point.y);
CMainFrame *pMF=(CMainFrame *)AfxGetApp()->m_pMainWnd;
CStatusBar *pS=&pMF->m_wndStatusBar;
pS->SetPaneText(1,strPos);
strPos.Empty();
*/
CView::OnMouseMove(nFlags, point);
}
注掉这些就可以了