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:
@@ -379,7 +379,7 @@ void wxVListBox::OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const
|
|||||||
flags |= wxCONTROL_SELECTED;
|
flags |= wxCONTROL_SELECTED;
|
||||||
if ( IsCurrent(n) )
|
if ( IsCurrent(n) )
|
||||||
flags |= wxCONTROL_CURRENT;
|
flags |= wxCONTROL_CURRENT;
|
||||||
if ( wxWindow::FindFocus() == this )
|
if ( wxWindow::FindFocus() == wx_const_cast(wxVListBox*, this) )
|
||||||
flags |= wxCONTROL_FOCUSED;
|
flags |= wxCONTROL_FOCUSED;
|
||||||
|
|
||||||
wxRendererNative::Get().DrawItemSelectionRect(
|
wxRendererNative::Get().DrawItemSelectionRect(
|
||||||
|
@@ -242,7 +242,7 @@ void wxHtmlHelpFrame::OnAbout(wxCommandEvent& event)
|
|||||||
// remains opened
|
// remains opened
|
||||||
bool wxHtmlHelpFrame::ShouldPreventAppExit() const
|
bool wxHtmlHelpFrame::ShouldPreventAppExit() const
|
||||||
{
|
{
|
||||||
return (this == wxTheApp->GetTopWindow());
|
return (wx_const_cast(wxHtmlHelpFrame*, this) == wxTheApp->GetTopWindow());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_WXHTML_HELP
|
#endif // wxUSE_WXHTML_HELP
|
||||||
|
Reference in New Issue
Block a user