void CMySplitter::OnDrawSplitter(CDC* pDC, ESplitType nType, const CRect& rect)
{
// TODO: Add your specialized code here and/or call the base class
if( pDC && nType == splitBorder ){
pDC->Rectangle( rect.left, rect.top, rect.left+1, rect.top+1);
return ;
}
CSplitterWnd::OnDrawSplitter(pDC, nType, rect);
}这样改了以后拆分条没了 但是拆分条两边的视图中的间距没有边窄,有没什么方法使拆分条变细同时两边的子窗口也能同时靠拢点?
{
// TODO: Add your specialized code here and/or call the base class
if( pDC && nType == splitBorder ){
pDC->Rectangle( rect.left, rect.top, rect.left+1, rect.top+1);
return ;
}
CSplitterWnd::OnDrawSplitter(pDC, nType, rect);
}这样改了以后拆分条没了 但是拆分条两边的视图中的间距没有边窄,有没什么方法使拆分条变细同时两边的子窗口也能同时靠拢点?
m_cxSplitterGap = m_cySplitterGap = 3;
m_cxBorder = m_cyBorder = 1;
rect.SetRect(rect.left, rect.top, rect.left+1, rect.top+1);
有错误:
CRect::SetRect' : 2 overloads have no legal conversion for 'this' pointer