From 78952e8ed548a9dab78b7b27ae475734786c4c74 Mon Sep 17 00:00:00 2001 From: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com> Date: Tue, 24 Aug 2021 21:02:53 -0400 Subject: [PATCH] Improve ListCtrl::EnableAlternateRowColours() documentation Mention that it needs to be called again after calling SetBackgroundColour(). Closes https://github.com/wxWidgets/wxWidgets/pull/2493 --- interface/wx/listctrl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index b3caa95761..17420746fc 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -1038,6 +1038,10 @@ public: Note that the wxWindow::GetBackgroundColour() function of wxWindow base class can be used to retrieve the current background colour. + + @note If alternate row colouring is enabled, then call + EnableAlternateRowColours() again after changing the background colour. This + will update the alternate row color to match the new background colour. */ virtual bool SetBackgroundColour(const wxColour& col);