git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31808
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !MSWCreateControl(className, wxEmptyString, pos, size) )
return false;
if ( !MSWCreateControl(className, wxEmptyString, pos, size) )
return false;
+ if (HasFlag(wxNB_NOPAGETHEME) || (wxSystemOptions::HasOption(wxT("msw.notebook.themed-background")) &&
+ wxSystemOptions::GetOptionInt(wxT("msw.notebook.themed-background")) == 0))
+ {
+ wxColour col = GetThemeBackgroundColour();
+ if (col.Ok())
+ {
+ SetBackgroundColour(col);
+ }
+ }
- if (HasFlag(wxNB_NOPAGETHEME) || (wxSystemOptions::HasOption(wxT("msw.notebook.themed-background")) &&
- wxSystemOptions::GetOptionInt(wxT("msw.notebook.themed-background")) == 0))
- {
- wxColour col = GetThemeBackgroundColour();
- if (col.Ok())
- {
- pPage->SetBackgroundColour(col);
- }
- }
-