Exemplo n.º 1
0
//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CChildFrame::OnPaint(void)
{
	if (bFirstPaint)
	{
		ValidateRect(NULL);
		CenterViews();
		bFirstPaint = FALSE;
		Invalidate();
		return;
	}

	CPaintDC dc(this); // device context for painting
}
Exemplo n.º 2
0
//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
void CChildFrame::OnViewAutosize4(void)
{
	if (!bUsingSplitter)
	{
		return;
	}

	if (0) // bAutosize4)
	{
		bAutosize4 = FALSE;
	}
	else
	{
		// resize 4 views
		CenterViews();
	}
}
Exemplo n.º 3
0
//-----------------------------------------------------------------------------
// Purpose: 
// Input  : nType - 
//			cx - 
//			cy - 
//-----------------------------------------------------------------------------
void CChildFrame::OnSize(UINT nType, int cx, int cy) 
{
	CMDIChildWnd::OnSize(nType, cx, cy);

	CenterViews();
}