@library{wxcore}
@category{ctrl}
- @appearance{listctrl.png}
+ <!-- @appearance{listctrl.png} -->
@see @ref overview_wxlistctrloverview "wxListCtrl overview", wxListView,
wxListBox, wxTreeCtrl, wxImageList, wxListEvent, wxListItem
@a code can be one of @c wxLIST_RECT_BOUNDS,
@c wxLIST_RECT_ICON or @c wxLIST_RECT_LABEL.
- @wxsince{2.7.0}
+ @since 2.7.0
*/
bool GetSubItemRect(long item, long subItem, wxRect& rect,
int code = wxLIST_RECT_BOUNDS) const;
bool SetItemColumnImage(long item, long column, int image);
/**
- This method can only be used with virtual list controls. It is used to indicate
- to the control the number of items it contains. After calling it, the main
- program should be ready to handle calls to various item callbacks (such as
- wxListCtrl::OnGetItemText) for all items in the range
- from 0 to @e count.
+ This method can only be used with virtual list controls.
+
+ It is used to indicate to the control the number of items it contains.
+ After calling it, the main program should be ready to handle calls to
+ various item callbacks (such as wxListCtrl::OnGetItemText) for all
+ items in the range from 0 to @a count.
+
+ Notice that the control is not necessarily redrawn after this call as
+ it may be undesirable if an item which is not visible on the screen
+ anyhow was added to or removed from a control displaying many items, if
+ you do need to refresh the display you can just call Refresh() manually.
*/
void SetItemCount(long count);
guaranteed to be large enough to be able to contain all integer types and
pointers.
- @wxsince{2.8.4}
+ @since 2.8.4
*/
bool SetItemPtrData(long item, wxUIntPtr data);
@library{wxcore}
@category{ctrl}
- @appearance{listview.png}
+ <!-- @appearance{listview.png} -->
@see wxListView::SetColumnImage
*/
Together with GetNextSelected() it can be
used to iterate over all selected items in the control.
- @returns The first selected item, if any, -1 otherwise.
+ @return The first selected item, if any, -1 otherwise.
*/
long GetFirstSelected() const;
Used together with GetFirstSelected() to
iterate over all selected items in the control.
- @returns Returns the next selected item or -1 if there are no more of
+ @return Returns the next selected item or -1 if there are no more of
them.
*/
long GetNextSelected(long item) const;