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:
parent
d84cc8c13b
commit
d836b8bcf2
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user