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.
This commit is contained in:
Artur Wieczorek 2015-12-14 21:57:11 +01:00
parent 0a917b86b7
commit 38f6cf13d5

View File

@ -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();
}
}