Factor out wxGenericTreeCtrl::InitVisualAttributes()

No real changes, just avoid calling an event handler directly.
This commit is contained in:
Vadim Zeitlin
2020-07-14 15:46:05 +02:00
parent 1ec7ae9a6f
commit 0d7ab26e7d
2 changed files with 10 additions and 4 deletions

View File

@@ -354,7 +354,14 @@ protected:
private:
bool m_hasExplicitFont;
void OnSysColourChanged(wxSysColourChangedEvent&);
void OnSysColourChanged(wxSysColourChangedEvent& WXUNUSED(event))
{
InitVisualAttributes();
}
// (Re)initialize colours, fonts, pens, brushes used by the control using
// the current system colours and font.
void InitVisualAttributes();
// Reset the state of the last find (i.e. keyboard incremental search)
// operation.