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 » Background color of a Statusbar on a Dialog not in theme color Collapse All
Subject Author Date
Martin Quaak Feb 7, 2004 - 1:25 PM

Hi,


When I add a statusbar to a dialog only the statusbar is not in the theme color. This is also the case in de samples. The AVI sample has a statusbar in the same style of the other controls. In the Prof-UIS_Controls sample have all the controls the selected style except the statusbar. This is grey (using the Office 2003 style and the default WinXP theme colors).


Is there a possibilty to have the statusbar in the same style as the dialog, menubars, toolbars and buttons? This will be the finishing touch of our UI.


Thanks a lot,


Martin

Technical Support Feb 9, 2004 - 6:33 AM

Dear Martin,

Thank you for your interest in Prof-UIS.

In case of any frame application, the Prof-UIS status bar is always painted according to the current theme set. In case of dialog-based applications, the status bar has the bug you are reporting about. The bug fix will be available in the next version.
If you want to fix it yourself, please follow the steps below:

1. At the beginning of the CExtPaintManagerOffice2003::PaintDockerBkgnd method in the ExtPainManager.cpp file, find the following piece of code:

if( (pFrame->GetStyle() & WS_CHILD) == 0 ) 
{     
    if(! pFrame->IsKindOf(RUNTIME_CLASS(CFrameWnd)) ) 
        return false;  
    break; 
}
2. Replace it with:
if( (pFrame->GetStyle() & WS_CHILD) == 0 ) 
{ 
    // if(! pFrame->IsKindOf(RUNTIME_CLASS(CFrameWnd)) ) 
    //     return false; 
    break; 
}
3. Recompile the library.

This should fix the bug. If not, please let us know.