relay mouse move events to the tooltips even when the window itself doesn't have a tooltip -- but its subwindow does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user