Remove unnecessary RECT initialization in WM_NCCALCSIZE handler
No real changes, just make RECT (lack of) initialization before calling GetThemeBackgroundContentRect() consistent between WM_NCCALCSIZE and WM_NCPAINT handlers. See https://github.com/wxWidgets/wxWidgets/pull/1141
This commit is contained in:
@@ -3729,7 +3729,12 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxUxThemeHandle hTheme((const wxWindow *)this, L"EDIT");
|
wxUxThemeHandle hTheme((const wxWindow *)this, L"EDIT");
|
||||||
RECT rcClient = { 0, 0, 0, 0 };
|
|
||||||
|
// There is no need to initialize rcClient: either it will
|
||||||
|
// be done by GetThemeBackgroundContentRect() or we'll do
|
||||||
|
// it below if it fails.
|
||||||
|
RECT rcClient;
|
||||||
|
|
||||||
wxClientDC dc((wxWindow *)this);
|
wxClientDC dc((wxWindow *)this);
|
||||||
wxMSWDCImpl *impl = (wxMSWDCImpl*) dc.GetImpl();
|
wxMSWDCImpl *impl = (wxMSWDCImpl*) dc.GetImpl();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user