X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6143d3b61e311ae647577c284eaf41dded4e2b3c..cae8f1bf03fb6d6c3e1d1578f790715388ef8ccf:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index fdef3d8cbf..6f474aed5f 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -345,6 +345,11 @@ bool wxNotebook::Create(wxWindow *parent, { SetBackgroundColour(GetThemeBackgroundColour()); } + else // use themed background by default + { + // create backing store + UpdateBgBrush(); + } #endif // wxUSE_UXTHEME // Undocumented hack to get flat notebook style @@ -941,7 +946,7 @@ void wxNotebook::OnSize(wxSizeEvent& event) RefreshRect(wxRect(0, rc.top, rc.left, height), false); RefreshRect(wxRect(0, rc.bottom, widthNbook, heightNbook - rc.bottom), false); - RefreshRect(wxRect(rc.right, rc.top, widthNbook - rc.bottom, height), + RefreshRect(wxRect(rc.right, rc.top, widthNbook - rc.right, height), false); }