From 8df1a93786fdae3a67cd64b1eaff09821ce7f84f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Oct 2012 21:07:59 +0000 Subject: fix for drawing icons in TopToolBar git-svn-id: http://svn.miranda-ng.org/main/trunk@2068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbar.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index ad4863d2cd..87db903dc6 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -281,6 +281,9 @@ int ArrangeButtons() } while (iFirstButtonId < Buttons.getCount() && y >= 0 && (g_ctrl->bAutoSize || (y + g_ctrl->nButtonHeight <= rcClient.bottom - rcClient.top))); + for (i=iLastButtonId; i < Buttons.getCount(); i++) + hdwp = DeferWindowPos(hdwp, Buttons[i]->hwnd, NULL, nextX, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_HIDEWINDOW); + if (hdwp) EndDeferWindowPos(hdwp); -- cgit v1.2.3