void cdxCDynamicWnd::DoInitWindow(CWnd & rWnd)
{
	ASSERT(::IsWindow(rWnd.m_hWnd));	// ensure the window exists ...

	m_pWnd		=	&rWnd;
	DoInitWindow(rWnd,GetCurrentClientSize());
}
BOOL cdxCDynamicDialog::OnInitDialog() 
{
	BOOL	bOK	=	CDialog::OnInitDialog();
	DoInitWindow(*this);

	return bOK;
}
void cdxCDynamicFormView::OnInitialUpdate()
{
	CFormView::OnInitialUpdate();
	DoInitWindow(*this,GetTotalSize());
}