LB_ADDFILE
Adds the specified filename to a list box that contains a directory listing.
LB_ADDSTRING
Adds a string to a list box. If the list box does not have the LBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list and the list is sorted.
LB_DELETESTRING
Deletes a string in a list box.
LB_DIR
Adds names to the list displayed by a list box. The message adds the names of directories and files that match a specified string and set of file attributes. LB_DIR can also add mapped drive letters to the list box.
LB_FINDSTRING
Finds the first string in a list box that begins with the specified string.
LB_FINDSTRINGEXACT
Finds the first list box string that exactly matches the specified string, except that the search is not case sensitive.
LB_GETANCHORINDEX
Gets the index of the anchor item
LB_GETCARETINDEX
Retrieves the index of the item that has the focus rectangle in a multiple-selection list box. The item may or may not be selected.
LB_GETCOUNT
Gets the number of items in a list box.
LB_GETCURSEL
Gets the index of the currently selected item, if any, in a single-selection list box.
LB_GETHORIZONTALEXTENT
Gets the width, in pixels, that a list box can be scrolled horizontally (the scrollable width) if the list box has a horizontal scroll bar.
LB_GETITEMDATA
Gets the application-defined value associated with the specified list box item.
LB_GETITEMHEIGHT
Gets the height of items in a list box.
LB_GETITEMRECT
Gets the dimensions of the rectangle that bounds a list box item as it is currently displayed in the list box.
LB_GETLISTBOXINFO
Gets the number of items per column in a specified list box.
LB_GETLOCALE
Gets the current locale of the list box. You can use the locale to determine the correct sorting order of displayed text (for list boxes with the LBS_SORT style) and of text added by the LB_ADDSTRING message.
LB_GETSEL
Gets the selection state of an item.
LB_GETSELCOUNT
Gets the total number of selected items in a multiple-selection list box.
LB_GETSELITEMS
Fills a buffer with an array of integers that specify the item numbers of selected items in a multiple-selection list box.
LB_GETTEXT
Gets a string from a list box.
LB_GETTEXTLEN
Gets the length of a string in a list box.
LB_GETTOPINDEX
Gets the index of the first visible item in a list box. Initially the item with index 0 is at the top of the list box, but if the list box contents have been scrolled another item may be at the top.
LB_INITSTORAGE
Allocates memory for storing list box items. This message is used before an application adds a large number of items to a list box.
LB_INSERTSTRING
Inserts a string or item data into a list box. Unlike the LB_ADDSTRING message, the LB_INSERTSTRING message does not cause a list with the LBS_SORT style to be sorted.
LB_ITEMFROMPOINT
Gets the zero-based index of the item nearest the specified point in a list box.
LB_RESETCONTENT
Removes all items from a list box.
LB_SELECTSTRING
Searches a list box for an item that begins with the characters in a specified string. If a matching item is found, the item is selected.
LB_SELITEMRANGE
Selects or deselects one or more consecutive items in a multiple-selection list box.
LB_SELITEMRANGEEX
Selects one or more consecutive items in a multiple-selection list box.
LB_SETANCHORINDEX
Sets the anchor item
LB_SETCARETINDEX
Sets the focus rectangle to the item at the specified index in a multiple-selection list box. If the item is not visible, it is scrolled into view.
LB_SETCOLUMNWIDTH
Sets the width, in pixels, of all columns in a multiple-column list box.
LB_SETCOUNT
Sets the count of items in a list box created with the LBS_NODATA style and not created with the LBS_HASSTRINGS style.
LB_SETCURSEL
Selects a string and scrolls it into view, if necessary. When the new string is selected, the list box removes the highlight from the previously selected string.
LB_SETHORIZONTALEXTENT
Sets the width, in pixels, by which a list box can be scrolled horizontally (the scrollable width). If the width of the list box is smaller than this value, the horizontal scroll bar horizontally scrolls items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden.
LB_SETITEMDATA
Sets a value associated with the specified item in a list box.
LB_SETITEMHEIGHT
Sets the height, in pixels, of items in a list box. If the list box has the LBS_OWNERDRAWVARIABLE style, this message sets the height of the item specified by the
wParam parameter. Otherwise, this message sets the height of all items in the list box.
LB_SETLOCALE
Sets the current locale of the list box. You can use the locale to determine the correct sorting order of displayed text (for list boxes with the LBS_SORT style) and of text added by the LB_ADDSTRING message.
LB_SETSEL
Selects a string in a multiple-selection list box.
LB_SETTABSTOPS
Sets the tab-stop positions in a list box.
LB_SETTOPINDEX
Ensures that the specified item in a list box is visible.