]> git.saurik.com Git - wxWidgets.git/commit
Refresh wxMSW wxStaticBitmap when its size changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 00:35:54 +0000 (00:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 00:35:54 +0000 (00:35 +0000)
commit05942059ef5ba8ebb6c7829776796a5be4e61262
treea22bf1ca55af7eb15587fc948507afb7151868c8
parent4bd1fc29b235ef580d084b8ca95d4ee2372bb157
Refresh wxMSW wxStaticBitmap when its size changes.

As MSW native control centers the image, it must be entirely redrawn when the
area in which the image is centered changes, but it doesn't happen by default,
so do it ourselves explicitly.

Also explain that this centering behaviour is platform-specific and shouldn't
be relied upon.

Closes #4564.

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