From 38f6cf13d572ef47696d3166f786775e18c01e60 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 14 Dec 2015 21:57:11 +0100 Subject: [PATCH] Refresh the toolbar after changing tool placing value. After changing padding for toolbar in SetToolPacking() there is necessary to refresh/recalculate the toolbar to reflect new padding. --- src/msw/toolbar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/toolbar.cpp b/src/msw/toolbar.cpp index fa97401829..71d2367dd3 100644 --- a/src/msw/toolbar.cpp +++ b/src/msw/toolbar.cpp @@ -1637,6 +1637,7 @@ void wxToolBar::SetToolPacking(int packing) ::SendMessage(GetHWND(), TB_SETPADDING, 0, MAKELPARAM(0, m_toolPacking)); else ::SendMessage(GetHWND(), TB_SETPADDING, 0, MAKELPARAM(m_toolPacking, 0)); + Realize(); } }