C/C++
ud297.txt
Associated article: Undocumented Corner
Tags: C/C++ Tools
Published source code accompanying the column by George Shepherd and Scot Wingo in which they examine the CSplitterWnd class. Also see UD297.ZIP.
Undocumented Corner
by George Shepherd and Scot Wingo
Listing One
BOOL CView::OnSplitCmd(UINT)
{
CSplitterWnd* pSplitter = GetParentSplitter(this, FALSE);
if (pSplitter == NULL)
return FALSE;
ASSERT(!pSplitter->IsTracking());
pSplitter->DoKeyboardSplit();
return TRUE;
}
Listing Two
BOOL CSplitterWnd::DoKeyboardSplit()
{
int ht;
...


