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 » Control bar question Collapse All
Subject Author Date
Rado Manzela Aug 3, 2010 - 4:20 AM

I need siple control bar without gripper containing resizable dialog docked at bottom of my frame. It should have static height, but full width of the frame. How can I achieve this? I’ve created it using CExtPanelControlBar but it does not resize with frame. Overriding of frame’s WM_SIZE and resizing of the bar using MoveWindow has defects. Is there better way I can use?
Thank you.

Technical Support Aug 3, 2010 - 9:38 AM

The CExtPanelControlBar class is not what you need. You need the CMyResizableInFixedModeBar class from the FixedSizePanels sample application. This bar implements the full-row/full column resizable control bar. You can create it without the CBRS_GRIPPER style to remove the bar caption. You should additionally override the following virtual methods to disable the bar resizing:

   virtual bool _RowResizingIsEnabled(
                        const CExtControlBar * pBarQuerySrc
                        ) const;
            virtual bool _RowRecalcingIsEnabled(
                        const CExtControlBar * pBarQuerySrc
                        ) const;

Your methods should simply return false flag.