Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to implement your style in formview. Collapse All
Subject Author Date
Chandler Bing Aug 30, 2005 - 2:50 AM

 I want use formview with the look like CExtResizableDialog .How to do this.


 Thank you in advise.

Technical Support Aug 30, 2005 - 7:19 AM

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.

Here it is the header:

class CChildFormView : public CExtWA < CExtWS < CExtAFV < CFormView >  > >
{
...
...
...
and the 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.