+
+ // VZ: it's ugly to do it here, but I don't want any major changes right
+ // now, later we will probably want to have wxWindow::OnGotToolTip() or
+ // something like this where the derived class can do such things
+ // itself instead of wxToolTip "knowing" about them all
+ wxComboBox *combo = wxDynamicCast(control, wxComboBox);
+ if ( combo )
+ {
+ WXHWND hwndComboEdit = combo->GetWindowStyle() & wxCB_READONLY
+ ? combo->GetHWND()
+ : combo->GetEditHWND();
+ if ( hwndComboEdit )
+ {
+ Add(hwndComboEdit);
+ }
+ }