Revert "Add wxWindow::MSWAfterReparent() virtual function"
This reverts commitcd637663c8(Add wxWindow::MSWAfterReparent() virtual function, 2022-10-16) and removes wxListCtrl::MSWAfterReparent() added inff629f3853(Fix drawing wxListCtrl since enabling double buffering by default, 2022-10-16) which is not used any more now.
This commit is contained in:
parent
15e4f5b185
commit
4c8ec0ed5d
4 changed files with 2 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue