Fix wxFULL_REPAINT_ON_RESIZE handling in wxMSW

Fix regression introduced in d4e595adb0
where the wxFULL_REPAINT_ON_RESIZE flag was accidentally ignored in most cases.
This commit is contained in:
Václav Slavík
2017-01-05 19:33:30 +01:00
committed by Václav Slavík
parent 2b342e8777
commit e99abe513a
3 changed files with 6 additions and 6 deletions

View File

@@ -468,15 +468,15 @@ wxWindowMSW::~wxWindowMSW()
}
const wxChar *wxWindowMSW::GetMSWClassName() const
const wxChar *wxWindowMSW::GetMSWClassName(long style)
{
return wxApp::GetRegisteredClassName
(
wxT("wxWindow"),
COLOR_BTNFACE,
0, // no special extra style
HasFlag(wxFULL_REPAINT_ON_RESIZE) ? wxApp::RegClass_Default
: wxApp::RegClass_ReturnNR
(style & wxFULL_REPAINT_ON_RESIZE) ? wxApp::RegClass_Default
: wxApp::RegClass_ReturnNR
);
}