Split a view from a menu item or keystroke

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

If you want to have a “Split” item on the menu instead of just using the split boxes in the scroll bars call this method. This is very useful if you want to split a view that has no scroll bars.

void CMySplitterView::OnWindowSplit()
{
	((CSplitterWnd*)GetParent())->DoKeyboardSplit();
}

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read