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 » Cannot replace CExtControlBar with my version comletely Collapse All
Subject Author Date
Alex Dmitriev Mar 3, 2006 - 9:17 AM

I have to realize special behaviour of undocked control bars.
I was able to replace m_pFloatingFrameClass with my own class in runtime CExtControlBar creation through WindowProc and FrameEnableDocking.
But I have problem ( the last I hope ) with elements that were created through ProfileBarStateLoad.

The problem happens here:

    case __DOCK_DYNAMIC_HALF_SPLIT:
    {
        m_pHelperBar = new CExtDynControlBar;


I cannot substitute CExtDynControlBar with my own realization.

Is there any way to customize ControlBar creation for all application?

Technical Support Mar 4, 2006 - 5:10 AM

Thank you for the interesting question. Yes, it is not possible to replace the CExtDynControlBar class with yours. This class implements a dynamic bar container, which is a control bar window itself. CExtDynControlBar allows you to organize a horizontal row with control bars inside a vertical column with control bars and vice versa. This kind of bar never has its caption. Its client area is completely covered by child bars. You can only see the non client area of this bar, which is used as a splitter for resizing the mentioned above columns/rows. We do not provide the ability to replace CExtDynControlBar because there is no point in this. It is possible to customize the size of splitter-like row/column resizing areas and repaint them. This feature is demonstrated in the TabbedBars sample and available in any version of Prof-UIS. You need to handle the CExtControlBar::g_nMsgCustomNcAreaQuery registered windows message as in the CMainFrame::OnMsgUseCustomNcArea() method in the TabbedBars sample (shows how to implement wider bar separators with Office 2003-like dot lines). The source code is available both in the full and trial Prof-UIS and it also works in Prof-UIS Freeware.