Set the width of the last status bar pane correctly in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 12:48:47 +0000 (12:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 12:48:47 +0000 (12:48 +0000)
commit8e76e931990cdfdce8bc32990e17896cf14d47cd
treea15e44a817e95e7fe4e670f1aa2d2419fc6fa86d
parentdcd223d1d14d7a8cf2f3b576b05fbc24606cc511
Set the width of the last status bar pane correctly in wxMSW.

The total width of status bar panes must add up to the size of the status bar
as otherwise an extra unwanted border is drawn after the last pane and we did
have this border for status bar with a size grip.

So while we still use the width without the size grip for calculating the
fields widths, pass the width with the size grip to Windows to prevent this
from happening.

Also, don't pretend that the last field stretches up to the status bar edge
when it should end before the size grip and Windows even already helpfully
does it for us.

Closes #12655.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/statusbar.cpp