Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Just apply the CExtWA < CExtWS < CExtAFV < : > > > templates to the parent class CFormView. This will add support for anchoring controls and a theme consistent look like that in CExtResizableDialog.

//header
class CChildFormView : public CExtWA < CExtWS < CExtAFV < CFormView >  > >
{
...
...
...
 
 
 
//implementation
IMPLEMENT_DYNCREATE(CChildFormView, CFormView)
 
CChildFormView::CChildFormView()
    : CExtWA < CExtWS < CExtAFV < CFormView >  > > ( CChildFormView::IDD, ((CWnd *)NULL) )
...

Please take a look at how it is done in the StatusPanes sample. CChildFormView is a CFormView-derived class which uses the above mentioned templates.