X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..486fd225d4942c852b913636bdc81d9a0a27f7d5:/src/msw/tooltip.cpp?ds=inline diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 7189cd9b47..0dcc94f036 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -382,12 +382,13 @@ void wxToolTip::SetWindow(wxWindow *win) wxComboBox *combo = wxDynamicCast(control, wxComboBox); if ( combo ) { - WXHWND hwndComboEdit = combo->GetEditHWND(); + WXHWND hwndComboEdit = combo->GetWindowStyle() & wxCB_READONLY + ? combo->GetHWND() + : combo->GetEditHWND(); if ( hwndComboEdit ) { Add(hwndComboEdit); } - //else: it's ok for a combo to be read only, of course } }