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 Tech Support » Disable gradient shading in CExtResizableDialog Collapse All
Subject Author Date
Mel Sampat Sep 25, 2005 - 8:02 PM

Is there an easy way to turn off the gradient shading in the background of CExtResizableDialog? I would like to keep the standard Windows XP background color on the dialog, but still use the resizing capabilities of CExtResizableDialog. Thanks!

Technical Support Sep 26, 2005 - 2:51 AM

Just create a CExtResizableDialog-derived class and override the WindowProc() virtual method in it:

LRESULT CYourDialog::WindowProc(
        UINT message, WPARAM wParam, lParam )
{
    if( message == WM_PAINT || message == WM_ERASEBKGND )
        return CDialog::WindowProc( message, wParam, lParam );
    else
        return CExtResizableDialog::WindowProc( message, wParam, lParam );
}