VC6 compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-03-11 01:31:45 +00:00
parent d84cc8c13b
commit d836b8bcf2
2 changed files with 2 additions and 2 deletions

View 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(

View 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