X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cc1ad299f621876234131268bbd8b927e7e6168..02e05e7e4087243171de25b598e701229814b821:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 4792bbef1c..80f2fc7030 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -282,7 +282,7 @@ bool wxNotebook::Create(wxWindow *parent, const int verComCtl32 = wxApp::GetComCtl32Version(); if ( verComCtl32 == 600 ) { - style &= ~(wxNB_BOTTOM | wxNB_LEFT | wxNB_RIGHT); + style &= ~(wxBK_BOTTOM | wxBK_LEFT | wxBK_RIGHT); } #endif //wxUSE_UXTHEME @@ -355,7 +355,7 @@ bool wxNotebook::Create(wxWindow *parent, if ( verComCtl32 == 600 ) { // check if we use themes at all -- if we don't, we're still okay - if ( wxUxThemeEngine::GetIfActive() && (style & (wxNB_BOTTOM|wxNB_LEFT|wxNB_RIGHT))) + if ( wxUxThemeEngine::GetIfActive() && (style & (wxBK_BOTTOM|wxBK_LEFT|wxBK_RIGHT))) { wxUxThemeEngine::GetIfActive()->SetWindowTheme((HWND)this->GetHandle(), L"", L""); SetBackgroundColour(GetThemeBackgroundColour()); //correct the background color for the new non-themed control