www.pudn.com > CHECKER.zip > NESTSPLT.CPP


#include "stdafx.h" 
 
#include "nestsplt.h" 
 
 
 
  void CNestSplit::SetMeActive(void) 
    { 
	CFrameWnd *frame=GetParentFrame(); 
	CView *view=(CView *)GetPane(0,0); 
	if (view->IsKindOf(RUNTIME_CLASS(CView))) 
	  frame->SetActiveView(view,TRUE); 
	} 
 
  BOOL CNestSplit::SplitRow(int cybefore) 
    { 
	SetMeActive(); 
	return CSplitterWnd::SplitRow(cybefore); 
	} 
 
  BOOL CNestSplit::SplitColumn(int cxbefore) 
    { 
	SetMeActive(); 
	return CSplitterWnd::SplitColumn(cxbefore); 
	}