Split a view from a menu item or keystroke

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