Avoid redraws of the window under tooltip when its text is changed.
Backport the change of r59198 (and correction from r59235) from trunk. Closes #10520. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -453,8 +453,10 @@ void wxToolTip::SetTip(const wxString& tip)
|
|||||||
{
|
{
|
||||||
// update the tip text shown by the control
|
// update the tip text shown by the control
|
||||||
wxToolInfo ti(GetHwndOf(m_window));
|
wxToolInfo ti(GetHwndOf(m_window));
|
||||||
ti.lpszText = (wxChar *)m_text.c_str();
|
ti.lpszText = (wxChar *)wxT("");
|
||||||
|
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, &ti);
|
||||||
|
|
||||||
|
ti.lpszText = (wxChar *)m_text.c_str();
|
||||||
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, &ti);
|
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, &ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user