Minor tweak (up-ported from 2.2.9) to make

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
This commit is contained in:
Robert Roebling 2002-03-31 14:06:32 +00:00
parent 5d5da6f610
commit 98b9643647
2 changed files with 6 additions and 1 deletions

View File

@ -495,6 +495,8 @@ void wxFrame::PositionToolBar()
else
{
tw = width;
if ( toolbar->GetWindowStyleFlag() & wxTB_FLAT )
th -= 3;
}
// use the 'real' MSW position here, don't offset relativly to the

View File

@ -1177,6 +1177,9 @@ bool wxToolBar::HandleSize(WXWPARAM wParam, WXLPARAM lParam)
else
{
w = LOWORD(lParam);
if (HasFlag( wxTB_FLAT ))
h = r.bottom - r.top - 3;
else
h = r.bottom - r.top;
if ( m_maxRows )
{