git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44751
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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(
// remains opened
bool wxHtmlHelpFrame::ShouldPreventAppExit() const
{
- return (this == wxTheApp->GetTopWindow());
+ return (wx_const_cast(wxHtmlHelpFrame*, this) == wxTheApp->GetTopWindow());
}
#endif // wxUSE_WXHTML_HELP