Click to See Complete Forum and Search --> : CControlBar, initial size when docked!


-mk-
January 21st, 2005, 12:19 PM
Hi,

How do I set the width of the CControlBar control in my SDI Layout when I create it? I want to be a certain size to show all of its content, I have tried all kinds of things but it just wont work. I did manage to change it initial size when its not docked but not the other way!

thanks,

Mike

coder0xff
January 21st, 2005, 07:02 PM
I am not especially experienced with CControlBar, but usually when a control is docked it's size is constrained by the container it's docked to. If you want it to be wider, then the owner control needs to be wider. If you are talking about sizing it in a dimension that is not constrained by the particular dock style, then trying sizing it and then docking it programmaticaly. Hope that helps.