I am using two CExtToolControlBar objects in a CExtResizableDialog.
In the "OnInitDialog" function of my dialog , I build my toolbars using command manager and LoadToolBar(...) function.
At the end of "OnInitDialog" function I use (as well as in the "OnSize" function) : CWnd::RepositionBars(0,0xFFFF,0).
By default, when running the program, these two toolbars are displayed, but are not in the same row.
At this time the result is :
What I want is :
How can I position my second toolbar to be on the same row than m_wndToolBar1 (on its right side), and optionally put some space between these two toolbars.
Please note that position will be fixed, user cannot click on toolbar grip to move the toolbar.
I have also read you FAQ "How to dock a toolbar to another toolbar in the same row", but I can’t make it work, using the DockControlBar function.
Thanks in advance for any help,
Merry Christmas and a Happy New Year