remove wxComboBox-specific hack, override DoSetToolTip() in wxComboBox itself instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-26 16:23:51 +00:00
parent c282ec4402
commit d6b9cc87c0
3 changed files with 18 additions and 18 deletions

View File

@@ -807,4 +807,16 @@ void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event)
event.Enable(IsEditable() && GetLastPosition() > 0);
}
#if wxUSE_TOOLTIPS
void wxComboBox::DoSetToolTip(wxToolTip *tip)
{
wxChoice::DoSetToolTip(tip);
if ( tip && !HasFlag(wxCB_READONLY) )
tip->Add(GetEditHWND());
}
#endif // wxUSE_TOOLTIPS
#endif // wxUSE_COMBOBOX