Update all windows associated with the tooltip when it changes in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Nov 2010 13:12:16 +0000 (13:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Nov 2010 13:12:16 +0000 (13:12 +0000)
commit0ce0f1e9eb40774b86bf50dd05230857d87372b0
tree85f781c4aca048ad5f0907685be9e2ed8130c086
parent2d64bab7032e60cd07959abd0a7dd968f6b75778
Update all windows associated with the tooltip when it changes in wxMSW.

Although the tooltip was initially correctly set for all windows associated
with it, it was only updated for the main one if its text changed later. This
resulted in leaving the old tooltip for the composite controls such as
wxComboBox or controls with sub-windows such as wxRadioBox.

Fix this by storing all windows associated with the tooltip (for space
efficiency, only allocate the array if necessary however as it will be empty
in the majority of cases) and apply SetTip() to all of them, not just the main
one.

Closes #12659.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/tooltip.h
src/msw/tooltip.cpp