X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..10992a81d39da31b79063387b7b71c0ff68737ce:/src/msw/tooltip.cpp 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 } }