固定分割窗口的分隔线 本帖最后由 takpod 于 2014-07-01 08:51:21 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BOOL CFixSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { if(!m_block) return CSplitterWnd::OnSetCursor(pWnd, nHitTest, message);// else return TRUE;// CWnd::OnSetCursor(pWnd, nHitTest, message);}不要调 CWND BOOL CFixSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { return CSplitterWnd::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);}注掉这些就可以了 事实上去掉这个就可以了,求原因 strPos.Empty(); pS->SetPaneText(1,strPos); strPos.Empty(); 状态条 还在 用 ? "CString strPos;" 改 全局的试试 求助!!!MFC中新建toolbar问题 关于线程结束关闭对话框 如何获取窗体的CRgn 请教高手:网页中的ActiveX控件如何取得其所在网页的Http-only Cookie? 这问题怎么解决(10分) 进来也有分 关于 Visual C++ 书 简单问题:怎样改变对话框的大小? 低手高分求教,TC++3.0如何安装? 关于在COM中创建一个线程的问题?(ATL) 如何用vector定义类的私有成员变量 无法输入汉字 RegOpenKeyEx读取注册表
{
if(!m_block)
return CSplitterWnd::OnSetCursor(pWnd, nHitTest, message);
// else
return TRUE;// CWnd::OnSetCursor(pWnd, nHitTest, message);
}
不要调 CWND
BOOL CFixSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{ return CSplitterWnd::OnSetCursor(pWnd, nHitTest, message);
}
就是这样也会出现错误,捕捉到鼠标就出现致命错误
{
// 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);
}注掉这些就可以了
strPos.Empty();
strPos.Empty(); 状态条 还在 用 ?