List-box messages are sent by an application to a list box. The following list briefly describes each list-box message:
Message | Description | |
LB_ADDSTRING | Adds a string to the list box. | |
LB_DELETESTRING | Deletes a string from the list box. | |
LB_DIR | Adds a list of the files from the current directory to the list box. | |
LB_FINDSTRING | Finds the first string in the list box which matches prefix text. | |
LB_GETCOUNT | Returns a count of the number of items in the list box. | |
LB_GETCURSEL | Returns the index of the currently selected item, if any. | |
LB_GETHORIZONTALEXTENT | Retrieves the width by which a list box can be scrolled horizontally. | |
LB_GETITEMDATA | Retrieves a 32-bit value associated with an item in an owner-draw list box. | |
LB_GETITEMRECT | Retrieves the coordinates of the rectangle that bounds a list-box item. | |
LB_GETSEL | Returns the selection state of an item. | |
LB_GETSELCOUNT | Returns the total number of selected items in a multiselection list box. | |
LB_GETSELITEMS | Retrieves the indexes of the selected items in a multiselection list box. | |
LB_GETTEXT | Copies a string from the list box into a buffer. | |
LB_GETTEXTLEN | Returns the length of a string in the list box. | |
LB_GETTOPINDEX | Returns the index of the first visible item in a list box. |
|
LB_INSERTSTRING | Inserts a string in the list box. | |
Message | Description | |
LB_RESETCONTENT | Removes all strings from a list box and frees any memory allocated for those strings. |
|
LB_SELECTSTRING | Changes the current selection to the first string that has the specified prefix. | |
LB_SELITEMRANGE | Selects one or more consecutive items in a multiple-selection list box. | |
LB_SETCOLUMNWIDTH | Sets the width in pixels of all columns in a multicolumn list box. | |
LB_SETCURSEL | Selects a string and scrolls it into view, if necessary. | |
LB_SETHORIZONTALEXTENT | Sets the width by which a list box can be scrolled horizontally. | |
LB_SETITEMDATA | Sets a 32-bit value associated with an item in an owner-draw list box. | |
LB_SETSEL | Sets the selection state of a string. | |
LB_SETTABSTOPS | Sets tab-stop positions in a list box. | |
LB_SETTOPINDEX | Sets the first visible item in a list box to the item identified by an index. |