Revert "Add wxWindow::MSWAfterReparent() virtual function"

This reverts commit cd637663c8 (Add wxWindow::MSWAfterReparent() virtual
function, 2022-10-16) and removes wxListCtrl::MSWAfterReparent() added
in ff629f3853 (Fix drawing wxListCtrl since enabling double buffering by
default, 2022-10-16) which is not used any more now.
This commit is contained in:
Vadim Zeitlin 2023-06-05 14:30:56 +01:00
parent 15e4f5b185
commit 4c8ec0ed5d
4 changed files with 2 additions and 19 deletions

View file

@ -396,8 +396,6 @@ protected:
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) override;
virtual void MSWAfterReparent() override;
virtual bool MSWGetDarkModeSupport(MSWDarkModeSupport& support) const override;
virtual int MSWGetToolTipMessage() const override;

View file

@ -632,11 +632,6 @@ protected:
virtual bool DoPopupMenu( wxMenu *menu, int x, int y ) override;
#endif // wxUSE_MENUS_NATIVE
// Called by Reparent() after the window parent changes, i.e. GetParent()
// returns the new parent inside this function.
virtual void MSWAfterReparent();
// the window handle
WXHWND m_hWnd;

View file

@ -365,11 +365,6 @@ void wxListCtrl::MSWInitHeader()
m_headerCustomDraw->UseHeaderThemeColors(hwndHdr);
}
void wxListCtrl::MSWAfterReparent()
{
// This is not used any more, to be removed.
}
WXDWORD wxListCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
{
WXDWORD wstyle = wxListCtrlBase::MSWGetStyle(style, exstyle);

View file

@ -1705,17 +1705,12 @@ bool wxWindowMSW::Reparent(wxWindowBase *parent)
::SetParent(hWndChild, hWndParent);
MSWAfterReparent();
return true;
}
void wxWindowMSW::MSWAfterReparent()
{
if ( wxHasWindowExStyle(this, WS_EX_CONTROLPARENT) )
{
EnsureParentHasControlParentStyle(GetParent());
}
return true;
}
void wxWindowMSW::MSWDisableComposited()