From: Václav Slavík Date: Thu, 31 Jul 2003 10:12:33 +0000 (+0000) Subject: compilation fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85b657c79d32e5876ce5b8ae1e7b9519fee18247 compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/uxtheme.h b/include/wx/msw/uxtheme.h index a98ce3a6ac..2518a03bcf 100644 --- a/include/wx/msw/uxtheme.h +++ b/include/wx/msw/uxtheme.h @@ -363,8 +363,9 @@ public: { wxUxThemeEngine *engine = wxUxThemeEngine::Get(); - m_hTheme = engine ? engine->OpenThemeData(win->GetHWND(), classes) - : NULL; + m_hTheme = + engine ? (WXHTHEME)engine->OpenThemeData(win->GetHWND(), classes) + : NULL; } operator WXHTHEME() const { return m_hTheme; } diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 4dd96d850a..8a0e5e0f14 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -26,6 +26,8 @@ #ifndef WX_PRECOMP #include "wx/string.h" + #include "wx/window.h" + #include "wx/dc.h" #endif //WX_PRECOMP #include "wx/renderer.h" @@ -153,7 +155,7 @@ wxRendererXP::DrawSplitterSash(wxWindow *win, wxUxThemeEngine::Get()->DrawThemeBackground ( - hTheme, + (WXHTHEME)hTheme, dc.GetHDC(), 3 /* RP_BAND */, 0 /* no state */ ,