⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__ctrl__combobox__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<!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: Messages of combobox control</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Messages of combobox control<br><small>[<a class="el" href="group__ctrl__combobox.htm">ComboBox control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga0">CB_GETEDITSEL</a>&nbsp;&nbsp;&nbsp;0xF140<dl class="el"><dd class="mdescRight">Gets the starting and ending character positions of the current selection.  <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga1">CB_LIMITTEXT</a>&nbsp;&nbsp;&nbsp;0xF141<dl class="el"><dd class="mdescRight">Limits the length of text in the edit control.  <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga2">CB_SETEDITSEL</a>&nbsp;&nbsp;&nbsp;0xF142<dl class="el"><dd class="mdescRight">Sets the starting and ending character positions of the current selection.  <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga3">CB_ADDSTRING</a>&nbsp;&nbsp;&nbsp;0xF143<dl class="el"><dd class="mdescRight">Adds a string to the list box of a combo box.  <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga4">CB_DELETESTRING</a>&nbsp;&nbsp;&nbsp;0xF144<dl class="el"><dd class="mdescRight">Deletes a string in the list box of a combo box.  <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga6">CB_GETCOUNT</a>&nbsp;&nbsp;&nbsp;0xF146<dl class="el"><dd class="mdescRight">Retreives the number of items in the list box of a combo box.  <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga7">CB_GETCURSEL</a>&nbsp;&nbsp;&nbsp;0xF147<dl class="el"><dd class="mdescRight">Retreives the index of the currently selected item in the list box.  <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga8">CB_GETLBTEXT</a>&nbsp;&nbsp;&nbsp;0xF148<dl class="el"><dd class="mdescRight">Retreives the string of an item in the list box.  <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga9">CB_GETLBTEXTLEN</a>&nbsp;&nbsp;&nbsp;0xF149<dl class="el"><dd class="mdescRight">Gets the string length of an item in the list box.  <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga10">CB_INSERTSTRING</a>&nbsp;&nbsp;&nbsp;0xF14A<dl class="el"><dd class="mdescRight">Inserts a string to the list box of a combo box.  <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga11">CB_RESETCONTENT</a>&nbsp;&nbsp;&nbsp;0xF14B<dl class="el"><dd class="mdescRight">Removes all items from the list box and edit control.  <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga12">CB_FINDSTRING</a>&nbsp;&nbsp;&nbsp;0xF14C<dl class="el"><dd class="mdescRight">Searchs the list box for an item beginning with the characters in a specified string.  <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga14">CB_SETCURSEL</a>&nbsp;&nbsp;&nbsp;0xF14E<dl class="el"><dd class="mdescRight">Selects a string in the list of a combo box.  <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga16">CB_GETITEMADDDATA</a>&nbsp;&nbsp;&nbsp;0xF150<dl class="el"><dd class="mdescRight">Retreives the application-supplied 32-bit value associated with the specified item.  <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga17">CB_SETITEMADDDATA</a>&nbsp;&nbsp;&nbsp;0xF151<dl class="el"><dd class="mdescRight">Sets a 32-bit data value with the specified item.  <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga18">CB_GETDROPPEDCONTROLRECT</a>&nbsp;&nbsp;&nbsp;0xF152<dl class="el"><dd class="mdescRight">Retreives the screen coordinates of the dropdown list box of a combo box.  <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga19">CB_SETITEMHEIGHT</a>&nbsp;&nbsp;&nbsp;0xF153<dl class="el"><dd class="mdescRight">Sets the height of all items of the list box in a combo box.  <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga20">CB_GETITEMHEIGHT</a>&nbsp;&nbsp;&nbsp;0xF154<dl class="el"><dd class="mdescRight">Gets the height of items of the list box in a combo box.  <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga23">CB_GETDROPPEDSTATE</a>&nbsp;&nbsp;&nbsp;0xF157<dl class="el"><dd class="mdescRight">Determines whether the list box of a combo box is dropped down.  <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga24">CB_FINDSTRINGEXACT</a>&nbsp;&nbsp;&nbsp;0xF158<dl class="el"><dd class="mdescRight">Searchs the list box for an item that matches the specified string.  <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga34">CB_SETSPINFORMAT</a>&nbsp;&nbsp;&nbsp;0xF162<dl class="el"><dd class="mdescRight">Sets the format string of value for CBS_AUTOSPIN type.  <a href="#ga34"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga35">CB_SETSPINRANGE</a>&nbsp;&nbsp;&nbsp;0xF163<dl class="el"><dd class="mdescRight">Determines the range of the spin box in a combo box.  <a href="#ga35"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga36">CB_GETSPINRANGE</a>&nbsp;&nbsp;&nbsp;0xF164<dl class="el"><dd class="mdescRight">Gets the range of the spin box in a combo box.  <a href="#ga36"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga37">CB_SETSPINVALUE</a>&nbsp;&nbsp;&nbsp;0xF165<dl class="el"><dd class="mdescRight">Determines the value of the spin box in a combo box.  <a href="#ga37"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga38">CB_GETSPINVALUE</a>&nbsp;&nbsp;&nbsp;0xF166<dl class="el"><dd class="mdescRight">Gets the current value of the spin box in a combo box.  <a href="#ga38"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga39">CB_SETSPINPACE</a>&nbsp;&nbsp;&nbsp;0xF167<dl class="el"><dd class="mdescRight">Determines the pace and the fast pace of the spin box in a combo box.  <a href="#ga39"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga40">CB_GETSPINPACE</a>&nbsp;&nbsp;&nbsp;0xF168<dl class="el"><dd class="mdescRight">Gets the pace and the fast pace of the spin box in a combo box.  <a href="#ga40"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga41">CB_SPIN</a>&nbsp;&nbsp;&nbsp;0xF170<dl class="el"><dd class="mdescRight">Spins the value of the spin box or auto spin box.  <a href="#ga41"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga42">CB_FASTSPIN</a>&nbsp;&nbsp;&nbsp;0xF171<dl class="el"><dd class="mdescRight">Fast spins the value of the spin box or auto spin box.  <a href="#ga42"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga43">CB_SETSTRCMPFUNC</a>&nbsp;&nbsp;&nbsp;0xF172<dl class="el"><dd class="mdescRight">Sets the STRCMP function used to sort items.  <a href="#ga43"></a><br></dl><li>#define <a class="el" href="group__ctrl__combobox__msgs.htm#ga44">CB_GETCHILDREN</a>&nbsp;&nbsp;&nbsp;0xF173<dl class="el"><dd class="mdescRight">Gets the handles to the children of a ComboBox control.  <a href="#ga44"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga3" doxytag="combobox.h::CB_ADDSTRING"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_ADDSTRING&nbsp;&nbsp;&nbsp;0xF143          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Adds a string to the list box of a combo box. <p>An application sends a CB_ADDSTRING message to add a string to the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga3">CB_ADDSTRING</a> <span class="keywordtype">char</span>* string; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)string;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>Pointer to the null-terminated string to be added.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The index of the new item on success, else the one of the following error codes:</dd></dl><ul><li>CB_ERRSPACE No memory can be allocated for new item.</li><li>CB_ERR Invalid passed arguments. </li></ul><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00288">288</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="combobox.h::CB_DELETESTRING"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_DELETESTRING&nbsp;&nbsp;&nbsp;0xF144          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Deletes a string in the list box of a combo box. <p>An application sends a CB_DELETESTRING message to delete a string in the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga4">CB_DELETESTRING</a> <span class="keywordtype">int</span> index; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)index; lParam = 0;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>Specifies the index of the string to delete.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If succeed, return zero; otherwise CB_ERR. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00309">309</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga42" doxytag="combobox.h::CB_FASTSPIN"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_FASTSPIN&nbsp;&nbsp;&nbsp;0xF171          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Fast spins the value of the spin box or auto spin box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga42">CB_FASTSPIN</a> <span class="keywordtype">int</span> direct wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)direct; lParam = 0;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>direct</em>&nbsp;</td><td>Indicats the direct of the spin. Zero means up, non-zero down.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Always be CB_OKAY. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00810">810</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga12" doxytag="combobox.h::CB_FINDSTRING"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_FINDSTRING&nbsp;&nbsp;&nbsp;0xF14C          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Searchs the list box for an item beginning with the characters in a specified string. <p>An application sends a CB_FINDSTRING message to search the list box for an item beginning with the characters in a specified string.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga12">CB_FINDSTRING</a> <span class="keywordtype">int</span> indexStart; <span class="keywordtype">char</span>* string; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)indexStart; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)string;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>indexStart</em>&nbsp;</td><td>Index of the item preceding the first item to be searched. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>Pointer to the null-terminated string that contains the prefix to search for.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The index of the matching item or CB_ERR to indicate not found. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00465">465</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga24" doxytag="combobox.h::CB_FINDSTRINGEXACT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_FINDSTRINGEXACT&nbsp;&nbsp;&nbsp;0xF158          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Searchs the list box for an item that matches the specified string. <p>An application sends a CB_FINDSTRINGEXACT message to search the list box for an item that matches a specified string.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga24">CB_FINDSTRINGEXACT</a> <span class="keywordtype">int</span> indexStart; <span class="keywordtype">char</span>* string; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)indexStart; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)string;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>indexStart</em>&nbsp;</td><td>Index of the item preceding the first item to be searched. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>Pointer to the null-terminated string to search for.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The index of the matching item; otherwise CB_ERR to indicate not found. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00630">630</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga44" doxytag="combobox.h::CB_GETCHILDREN"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_GETCHILDREN&nbsp;&nbsp;&nbsp;0xF173          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the handles to the children of a ComboBox control. <p>An application sends a CB_GETCHILDREN message to get the handles to the children of a ComboBox control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga44">CB_GETCHILDREN</a> <a class="code" href="group__handles.htm#ga1">HWND</a> *wnd_edit, *wnd_listbox; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)wnd_edit; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)wnd_listbox;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>wnd_edit</em>&nbsp;</td><td>The buffer saving the handle to the edit box of the ComboBox control. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>wnd_list</em>&nbsp;</td><td>The buffer saving the handle to the list box of the ComboBox control. If the ComboBox have type of CBS_AUTOSPIN, handle to the list box will be 0.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Always be CB_OKAY. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00867">867</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="combobox.h::CB_GETCOUNT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define CB_GETCOUNT&nbsp;&nbsp;&nbsp;0xF146          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retreives the number of items in the list box of a combo box. <p>An application sends a CB_GETCOUNT message to retreive the number of items in the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga6">CB_GETCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The number of items in the list box. </dd></dl>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -