From f68bb391ce844ac1805394719758fb7b101aadb7 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 21 Sep 2023 15:48:17 +0200 Subject: [PATCH] Update documentation of wxListCtrl IsItemChecked and CheckItem --- interface/wx/listctrl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index 4d8e88ceae..e256ea9b75 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -1386,6 +1386,8 @@ public: Always returns false if checkboxes support hadn't been enabled. + For a control with @c wxLC_VIRTUAL style, this uses OnGetItemIsChecked(). + @param item Item (zero-based) index. @since 3.1.0 @@ -1398,6 +1400,10 @@ public: This method only works if checkboxes support had been successfully enabled using EnableCheckBoxes(). + For a control with @c wxLC_VIRTUAL style, this will only generate the + @c EVT_LIST_ITEM_CHECKED and @c EVT_LIST_ITEM_UNCHECKED events. See + OnGetItemIsChecked() for information on how to update the checkbox state. + @param item Item (zero-based) index. @param check If @true, check the item, otherwise uncheck.