Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi
I have a question concerning the CDialogBar (:CControlBar).

I habe a MDI application with a dockable toolbox (CDialogBar).
The user is able/allowed to move the DialogBar and to dock it at the right or left side


When I dock at the left side, the content of the mdi-application (all open windows) are moved right (so the dockable bar moves the windows).

If i dock at the right side, nothing changes.


How can I change the behaviour of the bar, that the windows inside the application keep the same position when I dock left ??



(Problem is, that my windows are aligned on the right side of the application). When I dock the bar on the left, the windows are getting moved in the not visible area.)



Thanks in advance fpr your help
Posted

To the best of my knowledge, this is a matter of how MFC is designed. The idea of docking is avoiding hiding any portion of the window underneath the docked windows. When you dock to the right side, the expected behavior would be reducing the widths of the window to make room for the docked window.

You might want to try one thing: change the RightToLeft attribute of the main window to TRUE.
 
Share this answer
 
Thanks for your answer.

Yes, this is by design :(

But I could solve it myself: I correct the window's position after docking.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900