Fix re-parenting TLWs in wxMSW

We need to set the new owner for the TLW, instead of using the new
parent as the actual parent, in the MSW sense, as this results in a
weird situation in which the TLW becomes a child (i.e. non-TLW) window.

Closes #18785.
This commit is contained in:
Danail Stoychev
2020-07-09 00:34:44 +02:00
committed by Vadim Zeitlin
parent 8f4ebb4bdc
commit 5e7e89de16
2 changed files with 19 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ public:
wxNonOwnedWindow();
virtual ~wxNonOwnedWindow();
virtual bool Reparent(wxWindowBase* newParent);
virtual void InheritAttributes() wxOVERRIDE;
protected: