X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6614aa496dacac674623a676d8da586d4544953e..aa67a27af195f1f258c40f35a19dd2ade1ce80d8:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index bfc98f9e01..5b5fa833fb 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -293,7 +293,11 @@ bool wxNotebook::Create(wxWindow *parent, } #endif //wxUSE_UXTHEME +#if defined(__WINE__) && wxUSE_UNICODE + LPCTSTR className = L"SysTabControl32"; +#else LPCTSTR className = WC_TABCONTROL; +#endif #if USE_NOTEBOOK_ANTIFLICKER // SysTabCtl32 class has natively CS_HREDRAW and CS_VREDRAW enabled and it @@ -931,7 +935,7 @@ void wxNotebook::OnPaint(wxPaintEvent& WXUNUSED(event)) MSWDefWindowProc(WM_PAINT, (WPARAM)memdc.GetHDC(), 0); - // For some reason in RTL mode, source offset has to be -1, otherwise the + // For some reason in RTL mode, source offset has to be -1, otherwise the // right border (physical) remains unpainted. const wxCoord ofs = dir == wxLayout_RightToLeft ? -1 : 0; dc.Blit(ofs, 0, rc.right, rc.bottom, &memdc, ofs, 0);