📄 listbox_8h.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: listbox.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><div class="nav"><a class="el" href="dir_000003.htm">include</a> / <a class="el" href="dir_000004.htm">ctrl</a></div><h1>listbox.h File Reference</h1><p><a href="listbox_8h-source.htm">Go to the source code of this file.</a><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__listbox.htm#ga2">CTRL_LISTBOX</a> ("listbox")<dl class="el"><dd class="mdescRight">The class name of listbox control. <a href="group__ctrl__listbox.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox.htm#ga3">LB_OKAY</a> 0<li>#define <a class="el" href="group__ctrl__listbox.htm#ga4">LB_ERR</a> (-3)<li>#define <a class="el" href="group__ctrl__listbox.htm#ga5">LB_ERRSPACE</a> (-2)<li>#define <a class="el" href="group__ctrl__listbox.htm#ga9">CMFLAG_MASK</a> 0x000F<dl class="el"><dd class="mdescRight">The mask of check mark and image flag value. <a href="group__ctrl__listbox.htm#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga0">LBS_NOTIFY</a> 0x0001L<dl class="el"><dd class="mdescRight">Notifies the parent window. <a href="group__ctrl__listbox__styles.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga1">LBS_SORT</a> 0x0002L<dl class="el"><dd class="mdescRight">Sorts strings alphabetically. <a href="group__ctrl__listbox__styles.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga2">LBS_MULTIPLESEL</a> 0x0008L<dl class="el"><dd class="mdescRight">Causes the list box to allow the user to select multiple items. <a href="group__ctrl__listbox__styles.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga3">LBS_CHECKBOX</a> 0x1000L<dl class="el"><dd class="mdescRight">Displays a check box in an item. <a href="group__ctrl__listbox__styles.htm#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga4">LBS_USEICON</a> 0x2000L<dl class="el"><dd class="mdescRight">Displays an icon or bitmap in an item. <a href="group__ctrl__listbox__styles.htm#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga5">LBS_AUTOCHECK</a> 0x4000L<dl class="el"><dd class="mdescRight">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. <a href="group__ctrl__listbox__styles.htm#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga6">LBS_AUTOCHECKBOX</a> (LBS_CHECKBOX | LBS_AUTOCHECK)<dl class="el"><dd class="mdescRight">If the list box has LBS_AUTOCHECKBOX style, this style tell the box use LBS_CHECKBOX and BLS_AUTOCHECK style. <a href="group__ctrl__listbox__styles.htm#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga7">LBS_SBALWAYS</a> 0x8000L<dl class="el"><dd class="mdescRight">The list box with LBS_SBALWAYS style will always show vertical scrollbar. <a href="group__ctrl__listbox__styles.htm#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__styles.htm#ga8">LBS_MOUSEFOLLOW</a> 0x0010L<dl class="el"><dd class="mdescRight">The list box with LBS_MOUSEFOLLOW style will always change the selected item following mouse. <a href="group__ctrl__listbox__styles.htm#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga0">LB_ADDSTRING</a> 0xF180<dl class="el"><dd class="mdescRight">Appends the specified string. <a href="group__ctrl__listbox__msgs.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga1">LB_INSERTSTRING</a> 0xF181<dl class="el"><dd class="mdescRight">Inserts an item to the list box. <a href="group__ctrl__listbox__msgs.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga2">LB_DELETESTRING</a> 0xF182<dl class="el"><dd class="mdescRight">Removes an item from the list box. <a href="group__ctrl__listbox__msgs.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga4">LB_RESETCONTENT</a> 0xF184<dl class="el"><dd class="mdescRight">Removes the contents of a list box. <a href="group__ctrl__listbox__msgs.htm#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga5">LB_GETSEL</a> 0xF187<dl class="el"><dd class="mdescRight">Gets the selected state for an specified item. <a href="group__ctrl__listbox__msgs.htm#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga6">LB_SETSEL</a> 0xF185<dl class="el"><dd class="mdescRight">Selects an item in a multiple-selection list box. <a href="group__ctrl__listbox__msgs.htm#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga7">LB_GETCURSEL</a> 0xF188<dl class="el"><dd class="mdescRight">Gets the index of the currently selected or highlighted item. <a href="group__ctrl__listbox__msgs.htm#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga8">LB_SETCURSEL</a> 0xF186<dl class="el"><dd class="mdescRight">Selects an item. <a href="group__ctrl__listbox__msgs.htm#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga9">LB_GETTEXT</a> 0xF189<dl class="el"><dd class="mdescRight">Retrieves the text of an item in list box. <a href="group__ctrl__listbox__msgs.htm#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga10">LB_GETTEXTLEN</a> 0xF18A<dl class="el"><dd class="mdescRight">Gets the length of text of item specified in a list box. <a href="group__ctrl__listbox__msgs.htm#ga10"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga11">LB_GETCOUNT</a> 0xF18B<dl class="el"><dd class="mdescRight">Gets the number of items in the list box. <a href="group__ctrl__listbox__msgs.htm#ga11"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga14">LB_GETTOPINDEX</a> 0xF18E<dl class="el"><dd class="mdescRight">Gets the index to the first visible item in the list box. <a href="group__ctrl__listbox__msgs.htm#ga14"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga15">LB_FINDSTRING</a> 0xF18F<dl class="el"><dd class="mdescRight">Searchs a specified string. <a href="group__ctrl__listbox__msgs.htm#ga15"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga16">LB_GETSELCOUNT</a> 0xF190<dl class="el"><dd class="mdescRight">Gets the number of selected items in a multiple-selection list box. <a href="group__ctrl__listbox__msgs.htm#ga16"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga17">LB_GETSELITEMS</a> 0xF191<dl class="el"><dd class="mdescRight">Gets the numbers of selected items. <a href="group__ctrl__listbox__msgs.htm#ga17"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga23">LB_SETTOPINDEX</a> 0xF197<dl class="el"><dd class="mdescRight">Ensures that a particular item in it is visible. <a href="group__ctrl__listbox__msgs.htm#ga23"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga24">LB_GETITEMRECT</a> 0xF198<dl class="el"><dd class="mdescRight">Retrieves the dimensions of the rectangle. <a href="group__ctrl__listbox__msgs.htm#ga24"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga25">LB_GETITEMDATA</a> 0xF199<dl class="el"><dd class="mdescRight">Gets item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles. <a href="group__ctrl__listbox__msgs.htm#ga25"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga26">LB_SETITEMDATA</a> 0xF19A<dl class="el"><dd class="mdescRight">Sets item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles. <a href="group__ctrl__listbox__msgs.htm#ga26"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga30">LB_SETCARETINDEX</a> 0xF19E<dl class="el"><dd class="mdescRight">Sets the focus rectangle to the item at the specified index. <a href="group__ctrl__listbox__msgs.htm#ga30"></a><br></dl><li>#define <a class="el" href="group__ctrl__listbox__msgs.htm#ga31">LB_GETCARETINDEX</a> 0xF19F
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -