// 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 && !(combo->GetWindowStyle() & wxCB_READONLY))
+ if ( combo )
{
- WXHWND hwndComboEdit = combo->GetEditHWND();
+ WXHWND hwndComboEdit = combo->GetWindowStyle() & wxCB_READONLY
+ ? combo->GetHWND()
+ : combo->GetEditHWND();
if ( hwndComboEdit )
{
Add(hwndComboEdit);