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:
committed by
Václav Slavík
parent
2b342e8777
commit
e99abe513a
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user