Fix handling of the main window of composite controls in wxMSW wxToolTip.

The main window itself should be added using DoAddHWND() and not
AddOtherWindow() as it is not, precisely, "other". This fixes removing and
updating it twice unnecessarily.

Closes #14184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-04-05 13:55:56 +00:00
parent f7dd07f64d
commit 5e0b09554d
2 changed files with 2 additions and 1 deletions

View File

@@ -520,6 +520,7 @@ MSW:
- Add support for horizontal mouse wheel events (Lauri Nurmi).
- Implement wxGraphicsContext::SetInterpolationQuality() (Eric Jensen).
- Fix coordinate handling in wxDC::Blit() when source DC is a DIB.
- Fix handling of composite windows in wxToolTip (Armel Asselin).
OSX:

View File

@@ -502,7 +502,7 @@ void wxToolTip::SetWindow(wxWindow *win)
// add the window itself
if ( m_window )
{
AddOtherWindow(m_window->GetHWND());
DoAddHWND(m_window->GetHWND());
}
#if !defined(__WXUNIVERSAL__)
// and all of its subcontrols (e.g. radio buttons in a radiobox) as well