Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Toolbars and RecalcLayout()

Status
Not open for further replies.

StandaK

Programmer
Feb 14, 2003
22
CZ
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top