Hi all,
I have MFC SDI application with two toolbars on the same row.
In each of these toolbars I have some buttons which I wrap when it is needed so that all buttons stay visible.
But I have problem with calling RecalcLayout() then.
I set the position of both toolbars using MoveWindow() and then I call RecalcLayout(). But it seems that this function ignores the previously set coordinates and after this function finishes, the first toolbar is stretched over the full width of main window client area, although I set another rectangle for it before.
I really don't know what's the problem and I would be very happy if someone could help me in any way.
I have MFC SDI application with two toolbars on the same row.
In each of these toolbars I have some buttons which I wrap when it is needed so that all buttons stay visible.
But I have problem with calling RecalcLayout() then.
I set the position of both toolbars using MoveWindow() and then I call RecalcLayout(). But it seems that this function ignores the previously set coordinates and after this function finishes, the first toolbar is stretched over the full width of main window client area, although I set another rectangle for it before.
I really don't know what's the problem and I would be very happy if someone could help me in any way.