Professional UI Solutions
Site Map   /  Register


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 » Implementing CFormViews as CExtWA Collapse All
Subject Author Date
Cyndi Chatman Jan 29, 2007 - 7:25 AM

I have changed my code from using CFormView to be based on CExtWA < CExtWS < CExtAFV < CFormView > > > so that anchoring and themes are supported. However, I have multiple views that I am swapping out in the child view area. How can I make a viewaˆ™s background (and only the background) not use the theme? That is, I want the viewaˆ™s entire background to be white and not be overriden by the theme. I have tried overriding the OnDraw() and OnCtlColor() functions, but they do not seem to have any affect.

Also, in the views that I have now changed to be based on CExtWA, I have buttons that are declared as CExtButton. However, these buttons do not appear to be following the theme. Is this not supported in the CExtWA templates? Do you truly have be based off of CExtResizableDialog for the buttons to follow the theme?

Technical Support Jan 29, 2007 - 12:37 PM

We answered your questions by email.

Suhai Gyorgy Jan 29, 2007 - 9:21 AM

As Help file says:
- The CExtWS template class will help you easily add the CExtPaintManager class to you window class.
- By applying the CExtWA template class to any window, you can easily create and manage auto-resizable controls inside that window.

Additionally, what Help does not say is that CExtAFV has to be used to allow the developer to use the other template classes.

Maybe you have to use CExtWA < CExtAFV < CFormView > > without CExtWS to have the background of the FormView drawn white with OnCtlColor. But I guess that means that neither your controls will follow theme painting.

But if your view is CExtWA < CExtWS < CExtAFV < CFormView > > >, CExtButtons on it should be following the theme because of the CExtWS template class used.