]> git.saurik.com Git - wxWidgets.git/commitdiff
VC6 compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 11 Mar 2007 01:31:45 +0000 (01:31 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 11 Mar 2007 01:31:45 +0000 (01:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/vlbox.cpp
src/html/helpfrm.cpp

index 6879d41cbeca5b26ce5910d26b7387ad40a5a4f3..a9bfc5ceb6ac9929297f6ecffece386f0e288acf 100644 (file)
@@ -379,7 +379,7 @@ void wxVListBox::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const
             flags |= wxCONTROL_SELECTED;
         if ( IsCurrent(n) )
             flags |= wxCONTROL_CURRENT;
-        if ( wxWindow::FindFocus() == this )
+        if ( wxWindow::FindFocus() == wx_const_cast(wxVListBox*, this) )
             flags |= wxCONTROL_FOCUSED;
 
         wxRendererNative::Get().DrawItemSelectionRect(
index 7066746015c38f0537e17ea7fc12d84f1a0f7ebb..09ca6f4727b04b83609bc53d97dfef093931da72 100644 (file)
@@ -242,7 +242,7 @@ void wxHtmlHelpFrame::OnAbout(wxCommandEvent& event)
 // remains opened
 bool wxHtmlHelpFrame::ShouldPreventAppExit() const
 {
-    return (this == wxTheApp->GetTopWindow());
+    return (wx_const_cast(wxHtmlHelpFrame*, this) == wxTheApp->GetTopWindow());
 }
 
 #endif // wxUSE_WXHTML_HELP