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

📄 group__ctrl__combobox__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<p>Definition at line <a class="el" href="combobox_8h-source.htm#l00329">329</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="combobox.h::CB_GETCURSEL"></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_GETCURSEL&nbsp;&nbsp;&nbsp;0xF147          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retreives the index of the currently selected item in the list box. <p>An application sends a CB_GETCURSEL message to retreive the index of the currently selected item in the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga7">CB_GETCURSEL</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The index of currently selected item in the list box if have one; otherwise CB_ERR. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00348">348</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga18" doxytag="combobox.h::CB_GETDROPPEDCONTROLRECT"></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_GETDROPPEDCONTROLRECT&nbsp;&nbsp;&nbsp;0xF152          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retreives the screen coordinates of the dropdown list box of a combo box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga18">CB_GETDROPPEDCONTROLRECT</a> <a class="code" href="struct__RECT.htm">RECT</a> *rect; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)rect;</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>rect</em>&nbsp;</td><td>Pointer to the RECT structure used to save the coordinates. </td></tr>  </table></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00552">552</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga23" doxytag="combobox.h::CB_GETDROPPEDSTATE"></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_GETDROPPEDSTATE&nbsp;&nbsp;&nbsp;0xF157          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines whether the list box of a combo box is dropped down. <p><div class="fragment"><pre class="fragment"> CB_GETIDROPSTATE wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>If the list box is visible, the return value is TRUE; otherwise, it is FALSE. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00607">607</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga0" doxytag="combobox.h::CB_GETEDITSEL"></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_GETEDITSEL&nbsp;&nbsp;&nbsp;0xF140          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the starting and ending character positions of the current selection. <p>An application sends a CB_GETEDITSEL message to get the starting and ending character positions of the current selection in the edit control of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga0">CB_GETEDITSEL</a> <span class="keywordtype">int</span> start; <span class="keywordtype">int</span> end; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)&amp;start; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)&amp;end;</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>start</em>&nbsp;</td><td>Pointer to a 32-bit value that receives the starting position of the selection. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>end</em>&nbsp;</td><td>Pointer to a 32-bit value that receives the ending position of the selection.</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Not implemented yet. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00218">218</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="combobox.h::CB_GETITEMADDDATA"></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_GETITEMADDDATA&nbsp;&nbsp;&nbsp;0xF150          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retreives the application-supplied 32-bit value associated with the specified item. <p>An application sends an CB_GETITEMADDDATA message to retrive the 32-bit data value associated with with an item in the list box of the combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga16">CB_GETITEMADDDATA</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>The index of the item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The 32-bit data value associated with an item on success, otherwise CB_ERR to indicate an error. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00510">510</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga20" doxytag="combobox.h::CB_GETITEMHEIGHT"></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_GETITEMHEIGHT&nbsp;&nbsp;&nbsp;0xF154          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the height of items of the list box in a combo box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga20">CB_GETITEMHEIGHT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The height of item in the list box. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00588">588</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga8" doxytag="combobox.h::CB_GETLBTEXT"></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_GETLBTEXT&nbsp;&nbsp;&nbsp;0xF148          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retreives the string of an item in the list box. <p>An application sends a CB_GETLBTEXT message to retreive the string of a specified item in the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga8">CB_GETLBTEXT</a> <span class="keywordtype">int</span> index; <span class="keywordtype">char</span>* string; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)index; 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>index</em>&nbsp;</td><td>The index of the selected item. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>Pointer to the string buffer.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>CB_OKAY<br> Success.</li><li>CB_ERR<br> Invalid item index. </li></ul></dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00373">373</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="combobox.h::CB_GETLBTEXTLEN"></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_GETLBTEXTLEN&nbsp;&nbsp;&nbsp;0xF149          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the string length of an item in the list box. <p>An application sends a CB_GETLBTEXTLEN message to get the string length of a specified item in the list box of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga9">CB_GETLBTEXTLEN</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>The index of the specified item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The length of the string on success; otherwise CB_ERR. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00394">394</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga40" doxytag="combobox.h::CB_GETSPINPACE"></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_GETSPINPACE&nbsp;&nbsp;&nbsp;0xF168          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">

⌨️ 快捷键说明

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