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:
@@ -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
|
||||
|
Reference in New Issue
Block a user