Fix wxStaticBitmap best size calculation in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2012 14:23:57 +0000 (14:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2012 14:23:57 +0000 (14:23 +0000)
commitae4375b878f28ba89fd1814740c9293ba367c230
tree4f6c4b8ce269e2ada0baa84584288d736fd3a59f
parent7c9fdebe5fd18292fc8d08d5707e8340a0e2ee23
Fix wxStaticBitmap best size calculation in wxMSW.

Take the control borders into account by overriding DoGetBestClientSize()
instead of DoGetBestSize().

Also invalidate the default best size computed before we have any valid image
when setting the initial image in Create().

Closes #4099.

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