From: Vadim Zeitlin Date: Sun, 29 Oct 2006 23:35:27 +0000 (+0000) Subject: commented out more unused code (bcc compilation warning) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d203f875d421cb42ee07a2c2bc59186877ef15b?hp=630906de0e157ce6eafe10b85c3e4d717b06ba44 commented out more unused code (bcc compilation warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index e784c4a1cd..366446fac6 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -246,12 +246,9 @@ static void wxMSWDrawFocusRect( wxDC& dc, const wxRect& rect ) } // draw focus background on area in a way typical on platform -void wxComboCtrl::PrepareBackground( wxDC& dc, const wxRect& rect, int flags ) const +void +wxComboCtrl::PrepareBackground( wxDC& dc, const wxRect& rect, int flags ) const { - wxUxThemeEngine* theme = (wxUxThemeEngine*) NULL; - - // Constructor only calls GetHWND() const, so it should be safe - // to cast "this" to const. wxUxThemeHandle hTheme(this, L"COMBOBOX"); //COLORREF cref; @@ -314,8 +311,9 @@ void wxComboCtrl::PrepareBackground( wxDC& dc, const wxRect& rect, int flags ) c selRect.x += wcp + focusSpacingX; selRect.width -= wcp + (focusSpacingX*2); - if ( hTheme ) - theme = wxUxThemeEngine::GetIfActive(); + //wxUxThemeEngine* theme = (wxUxThemeEngine*) NULL; + //if ( hTheme ) + // theme = wxUxThemeEngine::GetIfActive(); wxColour bgCol; bool drawDottedEdge = false;