08-15-2008, 08:45 PM
By default toolbars automatically move itself to the top. To disable this you should set or remove some styles (don't remember, read in MSDN, the styles probably are documented somewhere in common control styles). Then, instead of sending TB_AUTOSIZE message, use MoveWindow for each toolbar to move it to correct position. Another solution - use rebar control. It is more difficult but then user can reorder toolbars.