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 » Relooking CDialog... Collapse All
Subject Author Date
Moby Dick Nov 16, 2004 - 5:12 AM

Hi,


I have various dialogboxes inhertiting from base class CDialog.


I want them to look like the ProfUIS windows. Should my classes inherit from the CExtResizableDialog class or not ?


Thanks a lot.


 

Technical Support Nov 16, 2004 - 5:38 AM

To make the dialog background consistent with GUI themes available in Prof-UIS, you need to inherit your dialog class from the CExtWS < CDialog > type. Please note that this template-based type does not affect the look and feel of the child controls. So, you may also have to subclass your dialog controls with those provided by Prof-UIS (CExtLabel, CExtButton, and etc.).

Moby Dick Nov 17, 2004 - 6:12 AM

Hi,


I followed your advice and I thank you.


 However, I have a window which manages the OnPaint event in order to draw
an image on the window (using a bitmap would be too high a cost in the EXE
file).
 Since I use the class CExtWS<CDialog>, the WM_PAINT event of my window is
not called any more. I tried to intercept the message using WindowProc
without result.


Where doses the problem come from and how can I solve it ?


 Thanks a lot.