listbox.h File Reference
Go to the source code of this file.
Data Structures
Defines
- #define CTRL_LISTBOX ("listbox")
- The class name of listbox control.
- #define LB_OKAY 0
- #define LB_ERR (-3)
- #define LB_ERRSPACE (-2)
- #define CMFLAG_MASK 0x000F
- The mask of check mark and image flag value.
- #define IMGFLAG_BITMAP 0x0010
- Listbox item style that context of itme is bitmap.
- #define LBIS_SIGNIFICANT 0x0020
- Listbox item style that item is rendered with WE_FGC_SIGNIFICANT_ITEM and WE_BGC_SIGNIFICANT_ITEM color.
- #define LBS_NOTIFY 0x0001L
- Notifies the parent window.
- #define LBS_SORT 0x0002L
- Sorts strings alphabetically.
- #define LBS_MULTIPLESEL 0x0008L
- Causes the list box to allow the user to select multiple items.
- #define LBS_CHECKBOX 0x1000L
- Displays a check box in an item.
- #define LBS_USEICON 0x2000L
- Displays an icon or bitmap in an item.
- #define LBS_AUTOCHECK 0x4000L
- If the list box has LBS_CHECKBOX style, this style tell the box to auto-switch the check box between checked or un-checked when the user click the check mark box of an item.
- #define LBS_AUTOCHECKBOX (LBS_CHECKBOX | LBS_AUTOCHECK)
- If the list box has LBS_AUTOCHECKBOX style, this style tell the box use LBS_CHECKBOX and BLS_AUTOCHECK style.
- #define LBS_SBALWAYS 0x8000L
- The list box with LBS_SBALWAYS style will always show vertical scrollbar.
- #define LBS_MOUSEFOLLOW 0x0010L
- The list box with LBS_MOUSEFOLLOW style will always change the selected item following mouse.
- #define LB_ADDSTRING 0xF180
- Appends the specified string.
- #define LB_INSERTSTRING 0xF181
- Inserts an item to the list box.
- #define LB_DELETESTRING 0xF182
- Removes an item from the list box.
- #define LB_SELITEMRANGEEX 0xF183
- reserved.
- #define LB_RESETCONTENT 0xF184
- Removes the contents of a list box.
- #define LB_GETSEL 0xF187
- Gets the selected state for an specified item.
- #define LB_SETSEL 0xF185
- Selects an item in a multiple-selection list box.
- #define LB_GETCURSEL 0xF188
- Gets the index of the currently selected or highlighted item.
- #define LB_SETCURSEL 0xF186
- Selects an item.
- #define LB_GETTEXT 0xF189
- Retrieves the text of an item in list box.
- #define LB_GETTEXTLEN 0xF18A
- Gets the length of text of item specified in a list box.
- #define LB_GETCOUNT 0xF18B
- Gets the number of items in the list box.
- #define LB_SELECTSTRING 0xF18C
- reserved.
- #define LB_DIR 0xF18D
- reserved.
- #define LB_GETTOPINDEX 0xF18E
- Gets the index to the first visible item in the list box.
- #define LB_FINDSTRING 0xF18F
- Searchs a specified string.
- #define LB_GETSELCOUNT 0xF190
- Gets the number of selected items in a multiple-selection list box.
- #define LB_GETSELITEMS 0xF191
- Gets the numbers of selected items.
- #define LB_GETHORIZONTALEXTENT 0xF193
- reserved.
- #define LB_SETHORIZONTALEXTENT 0xF194
- reserved.
- #define LB_SETCOLUMNWIDTH 0xF195
- reserved.
- #define LB_ADDFILE 0xF196
- reserved.
- #define LB_SETTOPINDEX 0xF197
- Ensures that a particular item in it is visible.
- #define LB_GETITEMRECT 0xF198
- Retrieves the dimensions of the rectangle.
- #define LB_GETITEMDATA 0xF199
- Gets item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.
- #define LB_SETITEMDATA 0xF19A
- Sets item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles.
- #define LB_SETCARETINDEX 0xF19E
- Sets the focus rectangle to the item at the specified index.
- #define LB_GETCARETINDEX 0xF19F
- Determines the index of the item that has the focus rectangle.
- #define LB_SETITEMHEIGHT 0xF1A0
- Sets the height of all items.
- #define LB_GETITEMHEIGHT 0xF1A1
- Gets the height in pixels of an item specified in the wParam parameter.
- #define LB_FINDSTRINGEXACT 0xF1A2
- Searchs for an item that exactly matches the characters specified.
- #define LB_SETLOCALE 0xF1A5
- reserved.
- #define LB_GETLOCALE 0xF1A6
- reserved.
- #define LB_SETCOUNT 0xF1A7
- reserved.
- #define LB_INITSTORAGE 0xF1A8
- reserved.
- #define LB_ITEMFROMPOINT 0xF1A9
- reserved.
- #define LB_SETTEXT 0xF1AA
- Sets text of the specified item.
- #define LB_GETCHECKMARK 0xF1AB
- Gets check mark status of an item.
- #define LB_SETCHECKMARK 0xF1AC
- Sets check mark status of an item.
- #define LB_GETITEMADDDATA 0xF1AD
- Gets the 32-bit data value associated with an item.
- #define LB_SETITEMADDDATA 0xF1AE
- Associates a 32-bit data value with an item.
- #define LB_SETSTRCMPFUNC 0xF1AF
- Sets the STRCMP function used to sort items.
- #define LB_SETITEMDISABLE 0xF1B0
- Sets the item disable.
- #define LB_GETITEMDISABLE 0xF1B1
- Get the item disable status.
- #define LB_SETITEMBOLD 0xF1B2
- Sets the item display use bold font.
- #define LB_MULTIADDITEM 0xF1B3
- Appends the multi strings.
- #define LBN_ERRSPACE 255
- Indicates that memory is not enough.
- #define LBN_SELCHANGE 1
- Indicates change due to mouse or keyboard user input.
- #define LBN_DBLCLK 2
- Indicates double click on an item.
- #define LBN_SELCANCEL 3
- Indicates cancel of the selection in the list box.
- #define LBN_SETFOCUS 4
- Indicates gain of input focus.
- #define LBN_KILLFOCUS 5
- Indicates loss of input focus.
- #define LBN_CLICKCHECKMARK 6
- Indicates click on the check mark.
- #define LBN_CLICKED 7
- Indicates click on the string.
- #define LBN_ENTER 8
- Indicates the user has pressed the ENTER key.
Typedefs
Detailed Description
- Author:
- Wei Yongming <ymwei@minigui.org>
- Date:
- 2001/12/29
Copyright (C) 2002-2008 Feynman Software.
Copyright (C) 1998-2002 Wei Yongming.
All rights reserved by Feynman Software.
This file is part of MiniGUI, a compact cross-platform Graphics
User Interface (GUI) support system for real-time embedded systems.
Definition in file listbox.h.