From d836b8bcf254da620bd56af0b0b9e71003b82147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 11 Mar 2007 01:31:45 +0000 Subject: [PATCH] VC6 compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/vlbox.cpp | 2 +- src/html/helpfrm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 6879d41cbe..a9bfc5ceb6 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -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( diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 7066746015..09ca6f4727 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -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