flat toolbars look slightly better even
without rebar controls underneath.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14879
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ if ( toolbar->GetWindowStyleFlag() & wxTB_FLAT )
+ th -= 3;
}
// use the 'real' MSW position here, don't offset relativly to the
}
// use the 'real' MSW position here, don't offset relativly to the
else
{
w = LOWORD(lParam);
else
{
w = LOWORD(lParam);
+ if (HasFlag( wxTB_FLAT ))
+ h = r.bottom - r.top - 3;
+ else
+ h = r.bottom - r.top;
if ( m_maxRows )
{
// FIXME: 6 is hardcoded separator line height...
if ( m_maxRows )
{
// FIXME: 6 is hardcoded separator line height...