Derive a class from the CSplitterWnd and override the left button and mouse move messages: call the CWnd versions rather than CSplitterWnd versions. Finally, remove menu items that may generate ID_WINDOW_SPLIT commands. To add to the above answer, you should also handle the WM_SETCURSOR message and just call the CWnd version so that the horizontal and vertical resize pointers are not shown. BOOL CMySplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { return CWnd::OnSetCursor(pWnd, nHitTest, message); } 更多信息参考: Q105150 "Preventing Static Splitters from Tracking" http://dev.csdn.net/develop/article/28/28430.shtm
要固定大小:可以试试下面的函数:
SetRowInfo 和 SetColumnInfo
{
return CWnd::OnSetCursor(pWnd, nHitTest, message);
} 更多信息参考:
Q105150 "Preventing Static Splitters from Tracking"
http://dev.csdn.net/develop/article/28/28430.shtm
To:hushuangyan74() 请问怎么在Create 中设置SizeMin啊?
To: bluwindhrt(风一飞) 如果单独就用SetRowInfo 和 SetColumnInfo达不到效果,一到最小尺寸时,视图就会变成0。