MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of listbox control

Macros

#define LB_ADDSTRING   0xF180
 Appends the specified string. More...
 
#define LB_INSERTSTRING   0xF181
 Inserts an item to the list box. More...
 
#define LB_DELETESTRING   0xF182
 Removes an item from the list box. More...
 
#define LB_SELITEMRANGEEX   0xF183
 reserved. More...
 
#define LB_RESETCONTENT   0xF184
 Removes the contents of a list box. More...
 
#define LB_GETSEL   0xF187
 Get the selected state for an specified item. More...
 
#define LB_SETSEL   0xF185
 Selects an item in a multiple-selection list box. More...
 
#define LB_GETCURSEL   0xF188
 Get the index of the currently selected or highlighted item. More...
 
#define LB_SETCURSEL   0xF186
 Selects an item. More...
 
#define LB_GETTEXT   0xF189
 Retrieve the text of an item in list box. More...
 
#define LB_GETTEXTLEN   0xF18A
 Get the length of text of item specified in a list box. More...
 
#define LB_GETCOUNT   0xF18B
 Get the number of items in the list box. More...
 
#define LB_SELECTSTRING   0xF18C
 reserved. More...
 
#define LB_DIR   0xF18D
 reserved. More...
 
#define LB_GETTOPINDEX   0xF18E
 Get the index to the first visible item in the list box. More...
 
#define LB_FINDSTRING   0xF18F
 Searchs a specified string. More...
 
#define LB_GETSELCOUNT   0xF190
 Get the number of selected items in a multiple-selection list box. More...
 
#define LB_GETSELITEMS   0xF191
 Get the numbers of selected items. More...
 
#define LB_GETHORIZONTALEXTENT   0xF193
 reserved. More...
 
#define LB_SETHORIZONTALEXTENT   0xF194
 reserved. More...
 
#define LB_SETCOLUMNWIDTH   0xF195
 reserved. More...
 
#define LB_ADDFILE   0xF196
 reserved. More...
 
#define LB_SETTOPINDEX   0xF197
 Ensures that a particular item in it is visible. More...
 
#define LB_GETITEMRECT   0xF198
 Retrieve the dimensions of the rectangle. More...
 
#define LB_GETITEMDATA   0xF199
 Get item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles. More...
 
#define LB_SETITEMDATA   0xF19A
 Set item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles. More...
 
#define LB_SETCARETINDEX   0xF19E
 Set the focus rectangle to the item at the specified index. More...
 
#define LB_GETCARETINDEX   0xF19F
 Determine the index of the item that has the focus rectangle. More...
 
#define LB_SETITEMHEIGHT   0xF1A0
 Set the height of all items. More...
 
#define LB_GETITEMHEIGHT   0xF1A1
 Get the height in pixels of an item specified in the wParam parameter. More...
 
#define LB_FINDSTRINGEXACT   0xF1A2
 Searchs for an item that exactly matches the characters specified. More...
 
#define LB_SETLOCALE   0xF1A5
 reserved. More...
 
#define LB_GETLOCALE   0xF1A6
 reserved. More...
 
#define LB_SETCOUNT   0xF1A7
 reserved. More...
 
#define LB_INITSTORAGE   0xF1A8
 reserved. More...
 
#define LB_ITEMFROMPOINT   0xF1A9
 reserved. More...
 
#define LB_SETTEXT   0xF1AA
 Set text of the specified item. More...
 
#define LB_GETCHECKMARK   0xF1AB
 Get check mark status of an item. More...
 
#define LB_SETCHECKMARK   0xF1AC
 Set check mark status of an item. More...
 
#define LB_GETITEMADDDATA   0xF1AD
 Get the 32-bit data value associated with an item. More...
 
#define LB_SETITEMADDDATA   0xF1AE
 Associates a 32-bit data value with an item. More...
 
#define LB_SETSTRCMPFUNC   0xF1AF
 Set the STRCMP function used to sort items. More...
 
#define LB_SETITEMDISABLE   0xF1B0
 Set the item disable. More...
 
#define LB_GETITEMDISABLE   0xF1B1
 Get the item disable status. More...
 
#define LB_SETITEMBOLD   0xF1B2
 Set the item display use bold font. More...
 
#define LB_MULTIADDITEM   0xF1B3
 Appends the multi strings. More...
 

Detailed Description

Macro Definition Documentation

◆ LB_ADDFILE

#define LB_ADDFILE   0xF196

reserved.

Definition at line 657 of file listbox.h.

◆ LB_ADDSTRING

#define LB_ADDSTRING   0xF180

Appends the specified string.

An application sends an LB_ADDSTRING message to append an item specified in the lParam parameter to a list box.

For a text-only list box:

const char* text;
wParam = 0;
lParam = (LPARAM)text;
Parameters
textPointer to the string of the item to be added.

For a list box with check box or icon (with LBS_CHECKBOX or LBS_USEICON styles):

wParam = 0;
lParam = (LPARAM)plbii;
Parameters
plbiiPointer to the listbox item info to be added.
Returns
The index of the new item on success, else the one of the following error codes:
  • LB_ERRSPACE No memory can be allocated for new item.
  • LB_ERR Invalid passed arguments.

Definition at line 277 of file listbox.h.

◆ LB_DELETESTRING

#define LB_DELETESTRING   0xF182

Removes an item from the list box.

An application sends an LB_DELETESTRING message to a list box to remove from the list box.

int del;
wParam = (WPARAM)del;
lParam = 0;
Parameters
delThe index of the listbox item to be deleted.
Returns
LB_OKAY on success, else LB_ERR to indicate you passed an invalid index.

Definition at line 343 of file listbox.h.

◆ LB_DIR

#define LB_DIR   0xF18D

reserved.

Definition at line 540 of file listbox.h.

◆ LB_FINDSTRING

#define LB_FINDSTRING   0xF18F

Searchs a specified string.

An application sends an LB_FINDSTRING message to search a list box for an item that begins with the characters specified in the lParam parameter. The wParam parameter specifies the zero-based index of the item before the first item to be searched; The lParam parameter specifies a pointer to a null-terminated string that contains the prefix to search for.

int index;
char *string;
wParam = (WPARAM)index;
lParam = (LPARAM)string;
Parameters
indexThe index of the item to be searched.
stringThe string of the item to be searched.
Returns
The index of the matched item; LB_ERR for not found.

Definition at line 585 of file listbox.h.

◆ LB_FINDSTRINGEXACT

#define LB_FINDSTRINGEXACT   0xF1A2

Searchs for an item that exactly matches the characters specified.

An application sends an LB_FINDSTRINGEXACT message to a list box to search it for an item that exactly matches the characters specified in the lParam parameter.

int index;
const char *string;
wParam = (WPARAM)index;
lParam = (LPARAM)string;
Parameters
indexThe index of the specified item.
stringThe string of the item to be searched for.
Returns
The index of the found item on success, else LB_ERR.

Definition at line 865 of file listbox.h.

◆ LB_GETCARETINDEX

#define LB_GETCARETINDEX   0xF19F

Determine the index of the item that has the focus rectangle.

An application sends an LB_GETCARETINDEX message to a list box to determine the index of the item that has the focus rectangle in a multiple-selection list box.

wParam = 0;
lParam = 0;
Returns
The index of the item that has the focus rectangle.

Definition at line 803 of file listbox.h.

◆ LB_GETCHECKMARK

#define LB_GETCHECKMARK   0xF1AB

Get check mark status of an item.

int index;
wParam = (WPARAM)index;
lParam = 0;
Parameters
indexThe index of the specified item.
Returns
The check mark status of specified item on success; LB_ERR on error.
Return values
LB_ERRInvalid item index or the list box have no LBS_CHECKBOX style.
CMFLAG_CHECKEDThe item is checked.
CMFLAG_PARTCHECKEDThe item is partly checked.
CMFLAG_BLANKThe item is not checked.

Definition at line 936 of file listbox.h.

◆ LB_GETCOUNT

#define LB_GETCOUNT   0xF18B

Get the number of items in the list box.

An application sends an LB_GETCOUNT message to a list box to get the number of items in the list box.

wParam = 0;
lParam = 0;
Returns
The number of items in the listbox.

Definition at line 528 of file listbox.h.

◆ LB_GETCURSEL

#define LB_GETCURSEL   0xF188

Get the index of the currently selected or highlighted item.

An application sends an LB_GETCURSEL message to a list box to get the index of the currently selected item, if there is one, in a single-selection list box. For multiple-selection list box, appliction send an LB_GETCURSEL message to a list box to get the index of the current highlighted item.

wParam = 0;
lParam = 0;
Returns
The index of the currently selected item for single-selection list box; Else the index of the highlighted item for multiple-selection list box.

Definition at line 439 of file listbox.h.

◆ LB_GETHORIZONTALEXTENT

#define LB_GETHORIZONTALEXTENT   0xF193

reserved.

Definition at line 639 of file listbox.h.

◆ LB_GETITEMADDDATA

#define LB_GETITEMADDDATA   0xF1AD

Get the 32-bit data value associated with an item.

An application sends an LB_GETITEMADDDATA message to a list box to get the 32-bit data value the list box has stored for the item with index of wParam; By default this is zero. An application must set the item data value by sending an LB_SETITEMADDDATA message to the list box for this value to have meaning.

int index;
wParam = (WPARAM)index;
lParam = 0;
Parameters
indexThe index of the specified item.
Returns
The 32-bit data value associated with an item on success, otherwise LB_ERR to indicate an error.

Definition at line 986 of file listbox.h.

◆ LB_GETITEMDATA

#define LB_GETITEMDATA   0xF199

Get item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.

An application sends LB_GETITEMDATA message to a list box to retrive the check box flag and the handle of icon. Note that the text of the item will not be returned, i.e., the field of string of LISTBOXITEMINFO structure will be ignored.

int index;
wParam = (WPARAM)index;
lParam = (LPARAM)plbii;
Parameters
indexThe index of the specified item.
plbiiPointer to the buffer used for storing the item data of the specified item.
Returns
LB_OKAY on success; LB_ERR on error.
See also
LISTBOXITEMINFO

Definition at line 734 of file listbox.h.

◆ LB_GETITEMDISABLE

#define LB_GETITEMDISABLE   0xF1B1

Get the item disable status.

An application sends an LB_SETITEMDISABLE message to get a item to disable status.

wParam = index;
lParam = 0;
Returns
One of the following values:
  • TRUE
    Item is disable
  • FLASE
    Item is enable

Definition at line 1078 of file listbox.h.

◆ LB_GETITEMHEIGHT

#define LB_GETITEMHEIGHT   0xF1A1

Get the height in pixels of an item specified in the wParam parameter.

An application sends an LB_GETITEMHEIGHT message to a list box to get the height in pixels of an item specified in the wParam parameter.

wParam = 0;
lParam = 0;
Returns
The height of item in the listbox.

Definition at line 842 of file listbox.h.

◆ LB_GETITEMRECT

#define LB_GETITEMRECT   0xF198

Retrieve the dimensions of the rectangle.

An application sends an LB_GETITEMRECT message to a list box to retrieve the dimensions of the rectangle that bounds an item as it is currently displayed in the list box window. The item is specified in the wParam parameter, and a pointer to a RECT structure is given in the lParam parameter.

int index;
RECT *rcItem;
wParam = (WPARAM)index;
lParam = (LPARAM)rcItem;
Parameters
indexThe index of the specified item.
rcItemPointer to the buffer used for storing the item rect;
Returns
LB_OKAY on success; LB_ERR on error.

Definition at line 705 of file listbox.h.

◆ LB_GETLOCALE

#define LB_GETLOCALE   0xF1A6

reserved.

Definition at line 876 of file listbox.h.

◆ LB_GETSEL

#define LB_GETSEL   0xF187

Get the selected state for an specified item.

An application sends an LB_GETSEL message to a list box to get the selected state for an item specified in the wParam parameter.

int index;
wParam = (WPARAM)index;
lParam = 0;
Parameters
indexThe index of the specified item.
Returns
The state of the specified item:
  • 0
    Not selected.
  • >0
    Selected.
  • LB_ERR
    Invalid index.

Definition at line 391 of file listbox.h.

◆ LB_GETSELCOUNT

#define LB_GETSELCOUNT   0xF190

Get the number of selected items in a multiple-selection list box.

An application sends an LB_GETSELCOUNT message to a list box to get the number of selected items in a multiple-selection list box.

wParam = 0;
lParam = 0;
Returns
The number of selected items in the multiple-selection listbox.

Definition at line 603 of file listbox.h.

◆ LB_GETSELITEMS

#define LB_GETSELITEMS   0xF191

Get the numbers of selected items.

An application sends an LB_GETSELITEMS message to a list box to fill a buffer with an array of integers that specify the item numbers of selected items in a multiple-selection list box.

int nItem;
int *pInt;
wParam = (WPARAM)nItem;
lParam = (LPARAM)pInt;
Parameters
nItemThe maximum integer numbers wanted.
pIntThe buffer of an array of integers to save the indices of selected items.
Returns
The number of selected items.

Definition at line 627 of file listbox.h.

◆ LB_GETTEXT

#define LB_GETTEXT   0xF189

Retrieve the text of an item in list box.

An application sends an LB_GETTEXT message to a list box to retrieve the text of an item.

int index;
char *string;
wParam = (WPARAM)index;
lParam = (LPARAM)string;
Parameters
indexThe index of the selected item.
stringPointer to the string buffer. The buffer should be large enough to contain the text of the item.
Returns
One of the following values:
  • LB_OKAY
    Success.
  • LB_ERR
    Invalid item index.
See also
LB_GETTEXTLEN

Definition at line 489 of file listbox.h.

◆ LB_GETTEXTLEN

#define LB_GETTEXTLEN   0xF18A

Get the length of text of item specified in a list box.

An application sends an LB_GETTEXTLEN message to a list box to get the length of text of the item specified in the wParam parameter.

int index;
wParam = (WPARAM)index;
lParam = 0;
Parameters
indexThe index of the specified item.
Returns
The length of the strings on success, else LB_ERR to indicate invalid index.

Definition at line 510 of file listbox.h.

◆ LB_GETTOPINDEX

#define LB_GETTOPINDEX   0xF18E

Get the index to the first visible item in the list box.

An application sends an LB_GETTOPINDEX message to get the index to the first visible item in the list box. Initially, the first visible item is item 0, but this changes as the list box is scrolled.

wParam = 0;
lParam = 0;
Returns
The index of the first visible item in the listbox.

Definition at line 559 of file listbox.h.

◆ LB_INITSTORAGE

#define LB_INITSTORAGE   0xF1A8

reserved.

Definition at line 886 of file listbox.h.

◆ LB_INSERTSTRING

#define LB_INSERTSTRING   0xF181

Inserts an item to the list box.

An application sends an LB_INSERTSTRING message to insert an item into a list box. Unlike LB_ADDSTRING message, the LB_INSERTSTRING message do not cause the list to be sorted.

For a text-only list box:

const char* text;
wParam = index;
lParam = (LPARAM)text;
Parameters
indexSpecifies the index of the position at which to insert the item.
textPointer to the string of the item to be inserted.

For a list box with check box or icon (with LBS_CHECKBOX or LBS_USEICON styles):

int index;
wParam = (WPARAM)index;
lParam = (LPARAM)plbii;
Parameters
indexSpecifies the index of the position at which to insert the item.
plbiiPointer to the listbox item info to be inserted.
Returns
The index of the new item on success, else the one of the following error codes:
  • LB_ERRSPACE No memory can be allocated for new item.
  • LB_ERR Invalid passed arguments.

Definition at line 322 of file listbox.h.

◆ LB_ITEMFROMPOINT

#define LB_ITEMFROMPOINT   0xF1A9

reserved.

Definition at line 891 of file listbox.h.

◆ LB_MULTIADDITEM

#define LB_MULTIADDITEM   0xF1B3

Appends the multi strings.

An application sends an LB_MULTIADDITEM message to append item array specified in the lParam parameter to a list box.

For a text-only list box:

int num;
const char text[num][];
wParam = num;
lParam = (LPARAM)text;
Parameters
numis count of text array
textpointer to the string of the item array to be added.

For a list box with check box or icon (with LBS_CHECKBOX or LBS_USEICON styles):

LISTBOXITEMINFO plbii[num];
wParam = num;
lParam = (LPARAM)plbii;
Parameters
numis count of plbii array
plbiipointer to the listbox item info to be added.
Returns
The index of the new item on success, else the one of the following error codes:
  • LB_ERRSPACE No memory can be allocated for new item.
  • LB_ERR Invalid passed arguments.

Definition at line 1140 of file listbox.h.

◆ LB_RESETCONTENT

#define LB_RESETCONTENT   0xF184

Removes the contents of a list box.

An application sends an LB_RESETCONTENT message to remove the all items in a list box.

wParam = 0;
lParam = 0;
Returns
Always be zero.

Definition at line 367 of file listbox.h.

◆ LB_SELECTSTRING

#define LB_SELECTSTRING   0xF18C

reserved.

Definition at line 534 of file listbox.h.

◆ LB_SELITEMRANGEEX

#define LB_SELITEMRANGEEX   0xF183

reserved.

◆ LB_SETCARETINDEX

#define LB_SETCARETINDEX   0xF19E

Set the focus rectangle to the item at the specified index.

An application sends an LB_SETCARETINDEX message to set the focus rectangle to the item at the specified index in a multiple-selection list box.

int index;
wParam = (WPARAM)index;
lParam = 0;

Definition at line 784 of file listbox.h.

◆ LB_SETCHECKMARK

#define LB_SETCHECKMARK   0xF1AC

Set check mark status of an item.

int index, status;
wParam = (WPARAM)index;
lParam = (LPARAM)status;
Parameters
indexThe index of the specified item.
statusThe new check mark status, can be one of the followings.
  • CMFLAG_CHECKED
    The item is checked.
  • CMFLAG_PARTCHECKED
    The item is partly checked.
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    Invalid item index or this list box have no LBS_CHECKBOX style.

Definition at line 961 of file listbox.h.

◆ LB_SETCOLUMNWIDTH

#define LB_SETCOLUMNWIDTH   0xF195

reserved.

Definition at line 651 of file listbox.h.

◆ LB_SETCOUNT

#define LB_SETCOUNT   0xF1A7

reserved.

Definition at line 881 of file listbox.h.

◆ LB_SETCURSEL

#define LB_SETCURSEL   0xF186

Selects an item.

An application sends an LB_SETCURSEL message to a list box to select an item and scroll it into view, if necessary.

int cursel;
wParam = (WPARAM)cursel;
lParam = 0;
Parameters
curselThe index of the item to be selected and hilighted.
Returns
The old index of the item selected on error, else LB_ERR to indicate an error occurred.

Definition at line 461 of file listbox.h.

◆ LB_SETHORIZONTALEXTENT

#define LB_SETHORIZONTALEXTENT   0xF194

reserved.

Definition at line 645 of file listbox.h.

◆ LB_SETITEMADDDATA

#define LB_SETITEMADDDATA   0xF1AE

Associates a 32-bit data value with an item.

An application sends an LB_SETITEMADDDATA message to associate a 32-bit data value specified in the lParam parameter with an item in the list box.

int index;
DWORD addData;
wParam = (WPARAM)index;
lParam = (LPARAM)addData;
Parameters
indexThe index of the specified item.
addDatathe 32-bit data value which will associated with the item.
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    Invalid item index

Definition at line 1011 of file listbox.h.

◆ LB_SETITEMBOLD

#define LB_SETITEMBOLD   0xF1B2

Set the item display use bold font.

An application sends an LB_SETITEMBOLD message to set a item display use bold font.

wParam = index;
lParam = (LPARAM)bold;
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    index of item is not exist.

Definition at line 1096 of file listbox.h.

◆ LB_SETITEMDATA

#define LB_SETITEMDATA   0xF19A

Set item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.

An application sends LB_SETITEMDATA message to a list box to set the check box flag and the handle of icon. Note that the text of the item will not be changed, i.e., the field of string of LISTBOXITEMINFO structure will be ignored.

int index;
wParam = (WPARAM)index;
lParam = (LPARAM)plbii;
Parameters
indexThe index of the specified item.
plbiiPointer to the buffer used for setting the item info of the specified item.
Returns
LB_OKAY on success; LB_ERR on error.
See also
LISTBOXITEMINFO

Definition at line 763 of file listbox.h.

◆ LB_SETITEMDISABLE

#define LB_SETITEMDISABLE   0xF1B0

Set the item disable.

An application sends an LB_SETITEMDISABLE message to set a item to disable.

wParam = index;
lParam = (LPARAM)disable;
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    index of item is not exist.

Definition at line 1060 of file listbox.h.

◆ LB_SETITEMHEIGHT

#define LB_SETITEMHEIGHT   0xF1A0

Set the height of all items.

An application sends an LB_SETITEMHEIGHT message to set the height of all items in a list box.

int itemHeight;
wParam = 0;
lParam = (LPARAM)itemHeight;
Parameters
itemHeightNew height of item.
Returns
The effective height of item.

Definition at line 824 of file listbox.h.

◆ LB_SETLOCALE

#define LB_SETLOCALE   0xF1A5

reserved.

Definition at line 871 of file listbox.h.

◆ LB_SETSEL

#define LB_SETSEL   0xF185

Selects an item in a multiple-selection list box.

An application sends an LB_SETSEL message to select an item in a multiple-selection list box and scroll it into view if necessary.

int index, sel
wParam = (WPARAM)sel;
lParam = (LPARAM)index;
Parameters
selIndicates the changes to be made to the listbox item, can be one of the following values:
  • -1
    If the item has been selected, makes it unselected, vice versa.
  • 0
    Makes the item unselected.
  • other
    Makes the item selected.
indexThe index of the item.
Returns
LB_OKAY on success, else LB_ERR to indicate you passed an invalid index or the list box has no LBS_MULTIPLESEL style.

Definition at line 418 of file listbox.h.

◆ LB_SETSTRCMPFUNC

#define LB_SETSTRCMPFUNC   0xF1AF

Set the STRCMP function used to sort items.

An application sends an LB_SETSTRCMPFUNC message to set a new STRCMP function to sort items.

Note that you should send this message before adding any item to the list box control.

static int my_strcmp (const char* s1, const char* s2, size_t n)
{
...
return 0;
}
wParam = 0;
lParam = (LPARAM)my_strcmp;
Parameters
my_strcmpYour own function to compare two strings.
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    Not an empty list box.

Definition at line 1042 of file listbox.h.

◆ LB_SETTEXT

#define LB_SETTEXT   0xF1AA

Set text of the specified item.

int index;
const char *string;
wParam = (WPARAM)index;
lParam = (LPARAM)string;
Parameters
indexThe index of the specified item.
stringThe string of the item to be set.
Returns
One of the following values:
  • LB_OKAY
    Success
  • LB_ERR
    Invalid item index or memory allocation error.

Definition at line 913 of file listbox.h.

◆ LB_SETTOPINDEX

#define LB_SETTOPINDEX   0xF197

Ensures that a particular item in it is visible.

An application sends an LB_SETTOPINDEX message to a list box to ensure that a particular item in it is visible. The item is specified in the wParam parameter. The list box scrolls so that either the specified item appears at the top of the list box or the maximum scroll range has been reached.

int index;
wParam = (WPARAM)index;
lParam = 0;
Parameters
indexThe index of the particular item to be set.
Returns
Always be zero.

Definition at line 680 of file listbox.h.

LB_GETCARETINDEX
#define LB_GETCARETINDEX
Determine the index of the item that has the focus rectangle.
Definition: listbox.h:803
LB_GETTOPINDEX
#define LB_GETTOPINDEX
Get the index to the first visible item in the list box.
Definition: listbox.h:559
LB_SETITEMHEIGHT
#define LB_SETITEMHEIGHT
Set the height of all items.
Definition: listbox.h:824
LB_GETSELITEMS
#define LB_GETSELITEMS
Get the numbers of selected items.
Definition: listbox.h:627
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
LB_SETITEMADDDATA
#define LB_SETITEMADDDATA
Associates a 32-bit data value with an item.
Definition: listbox.h:1011
LB_SETITEMDATA
#define LB_SETITEMDATA
Set item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.
Definition: listbox.h:763
LB_GETSEL
#define LB_GETSEL
Get the selected state for an specified item.
Definition: listbox.h:391
LB_SETSTRCMPFUNC
#define LB_SETSTRCMPFUNC
Set the STRCMP function used to sort items.
Definition: listbox.h:1042
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
_RECT
Definition: common.h:936
LB_GETSELCOUNT
#define LB_GETSELCOUNT
Get the number of selected items in a multiple-selection list box.
Definition: listbox.h:603
LB_GETCURSEL
#define LB_GETCURSEL
Get the index of the currently selected or highlighted item.
Definition: listbox.h:439
LB_GETITEMHEIGHT
#define LB_GETITEMHEIGHT
Get the height in pixels of an item specified in the wParam parameter.
Definition: listbox.h:842
LB_GETITEMRECT
#define LB_GETITEMRECT
Retrieve the dimensions of the rectangle.
Definition: listbox.h:705
LB_MULTIADDITEM
#define LB_MULTIADDITEM
Appends the multi strings.
Definition: listbox.h:1140
LB_FINDSTRING
#define LB_FINDSTRING
Searchs a specified string.
Definition: listbox.h:585
LB_GETCOUNT
#define LB_GETCOUNT
Get the number of items in the list box.
Definition: listbox.h:528
LB_GETTEXT
#define LB_GETTEXT
Retrieve the text of an item in list box.
Definition: listbox.h:489
LB_ADDSTRING
#define LB_ADDSTRING
Appends the specified string.
Definition: listbox.h:277
LB_GETITEMDATA
#define LB_GETITEMDATA
Get item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.
Definition: listbox.h:734
LB_DELETESTRING
#define LB_DELETESTRING
Removes an item from the list box.
Definition: listbox.h:343
LB_SETCURSEL
#define LB_SETCURSEL
Selects an item.
Definition: listbox.h:461
LB_GETCHECKMARK
#define LB_GETCHECKMARK
Get check mark status of an item.
Definition: listbox.h:936
_LISTBOXITEMINFO
Definition: listbox.h:118
LB_INSERTSTRING
#define LB_INSERTSTRING
Inserts an item to the list box.
Definition: listbox.h:322
LB_RESETCONTENT
#define LB_RESETCONTENT
Removes the contents of a list box.
Definition: listbox.h:367
LB_GETTEXTLEN
#define LB_GETTEXTLEN
Get the length of text of item specified in a list box.
Definition: listbox.h:510
LB_SETTEXT
#define LB_SETTEXT
Set text of the specified item.
Definition: listbox.h:913
LB_SETCARETINDEX
#define LB_SETCARETINDEX
Set the focus rectangle to the item at the specified index.
Definition: listbox.h:784
LB_SETTOPINDEX
#define LB_SETTOPINDEX
Ensures that a particular item in it is visible.
Definition: listbox.h:680
LB_GETITEMADDDATA
#define LB_GETITEMADDDATA
Get the 32-bit data value associated with an item.
Definition: listbox.h:986
LB_SETCHECKMARK
#define LB_SETCHECKMARK
Set check mark status of an item.
Definition: listbox.h:961
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
LB_FINDSTRINGEXACT
#define LB_FINDSTRINGEXACT
Searchs for an item that exactly matches the characters specified.
Definition: listbox.h:865
LB_SETSEL
#define LB_SETSEL
Selects an item in a multiple-selection list box.
Definition: listbox.h:418