//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CChildFrame::OnPaint(void) { if (bFirstPaint) { ValidateRect(NULL); CenterViews(); bFirstPaint = FALSE; Invalidate(); return; } CPaintDC dc(this); // device context for painting }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CChildFrame::OnViewAutosize4(void) { if (!bUsingSplitter) { return; } if (0) // bAutosize4) { bAutosize4 = FALSE; } else { // resize 4 views CenterViews(); } }
//----------------------------------------------------------------------------- // Purpose: // Input : nType - // cx - // cy - //----------------------------------------------------------------------------- void CChildFrame::OnSize(UINT nType, int cx, int cy) { CMDIChildWnd::OnSize(nType, cx, cy); CenterViews(); }