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 » CExtControlBar question Collapse All
Subject Author Date
Offer Har Mar 23, 2007 - 10:58 AM

Dear Support,

I have a CExtControlBar I want to be only be able to dock to the left or right, so i called

m_wndBar.EnableDocking(CBRS_ALIGN_LEFT|CBRS_ALIGN_RIGHT);

But still, i can dock it at top & bottom.

Why is that?

Thanks,
Ron.

Technical Support Mar 23, 2007 - 2:12 PM

The drop target restriction flags were designed for simple MFC bars which can be docked to four outer frame sides only. The resizable bars have four sides of outer/inner part of the frame and of each other bar/tabbed bar group. Disabling some of the sides is absolutely unreasonable. Currently resizable bars can be restricted only for docking relatively to other resizable bars with overriding of the following virtual methods of the CExtControlBar class:

      virtual bool _CanDockToTabbedContainers(
            CExtControlBar * pDestBar
            ) const;
      virtual bool _CanDockLTRB(
            CExtControlBar * pDestBar
            ) const;