X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8026dea6cf102fb741f132142f9d6584d3e0cef..1ab440bc203fc700744039abdcff12bdd6ac6f0a:/src/msw/evtloop.cpp?ds=sidebyside diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index 805fb95ef4..c260f52ea2 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -141,11 +141,10 @@ bool wxEventLoop::PreProcessMessage(WXMSG *msg) // popup the tooltip bubbles if ( msg->message == WM_MOUSEMOVE ) { - wxToolTip *tt = wndThis->GetToolTip(); - if ( tt ) - { - tt->RelayEvent((WXMSG *)msg); - } + // we should do it if one of window children has an associated tooltip + // (and not just if the window has a tooltip itself) + if ( wndThis->HasToolTips() ) + wxToolTip::RelayEvent((WXMSG *)msg); } #endif // wxUSE_TOOLTIPS