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);
+ }
+ }
return true;
}
InvalidateBestSize();
- 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);
- }
- }
-
return true;
}