]> git.saurik.com Git - wxWidgets.git/commit
Refactor wxStatusBar creation in wxMSW to do it in standard way.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:41 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:41 +0000 (01:22 +0000)
commitdb6150d59a04dd19dcff0c639f3b7df6d80d5f1b
tree6dd611fd25a77d14a2b0866dfa837435e45aef01
parentf771bae35a55f0d229dad37b418cca8345af8fa8
Refactor wxStatusBar creation in wxMSW to do it in standard way.

Use wxControl-provided CreateControl() and MSWCreateControl() methods to
create the status bar instead of duplicating their code in its Create().

Also translate wx styles to MSW ones in overridden MSWGetStyle() now.

In addition to making the code smaller and more clear, this fixes the
non-respect of the styles specified at status bar creation (e.g. border),
see #12655.

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