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

📄 group__ctrl__listbox__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
    <td>      &nbsp;    </td>    <td><p>Sets item data in a list box if the box has LBS_CHECKBOX and/or LBS_USEICON styles. <p>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 <em>string</em> of LISTBOXITEMINFO structure will be ignored.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__listbox__msgs.htm#ga26">LB_SETITEMDATA</a> <span class="keywordtype">int</span> index; <a class="code" href="struct__LISTBOXITEMINFO.htm">PLISTBOXITEMINFO</a> plbii; 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>)plbii;</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>    <tr><td valign="top"></td><td valign="top"><em>plbii</em>&nbsp;</td><td>Pointer to the buffer used for setting the item info of the specified item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>LB_OKAY on success; LB_ERR on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__listbox.htm#ga0">LISTBOXITEMINFO</a> </dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00677">677</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga46" doxytag="listbox.h::LB_SETITEMDISABLE"></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 LB_SETITEMDISABLE&nbsp;&nbsp;&nbsp;0xF1B0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the item disable. <p>An application sends an LB_SETITEMDISABLE message to set a item to disable.<p><div class="fragment"><pre class="fragment"> wParam = index; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)disable;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>LB_OKAY<br> Success</li><li>LB_ERR<br> index of item is not exist. </li></ul></dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00954">954</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga32" doxytag="listbox.h::LB_SETITEMHEIGHT"></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 LB_SETITEMHEIGHT&nbsp;&nbsp;&nbsp;0xF1A0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the height of all items. <p>An application sends an LB_SETITEMHEIGHT message to set the height of all items in a list box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__listbox__msgs.htm#ga32">LB_SETITEMHEIGHT</a> <span class="keywordtype">int</span> itemHeight; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)itemHeight;</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>itemHeight</em>&nbsp;</td><td>New height of item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The effective height of item. </dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00738">738</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="listbox.h::LB_SETSEL"></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 LB_SETSEL&nbsp;&nbsp;&nbsp;0xF185          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Selects an item in a multiple-selection list box. <p>An application sends an LB_SETSEL message to select an item in a multiple-selection list box and scroll it into view if necessary.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__listbox__msgs.htm#ga6">LB_SETSEL</a> <span class="keywordtype">int</span> index, sel wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)sel; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)index;</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>sel</em>&nbsp;</td><td>Indicates the changes to be made to the listbox item, can be one of the following values:<ul><li>-1<br> If the item has been selected, makes it unselected, vice versa.</li><li>0<br> Makes the item unselected.</li><li>other<br> Makes the item selected. </li></ul></td></tr>    <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>LB_OKAY on success, else LB_ERR to indicate you passed an invalid index or the list box has no LBS_MULTIPLESEL style. </dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00365">365</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga45" doxytag="listbox.h::LB_SETSTRCMPFUNC"></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 LB_SETSTRCMPFUNC&nbsp;&nbsp;&nbsp;0xF1AF          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the STRCMP function used to sort items. <p>An application sends an LB_SETSTRCMPFUNC message to set a new STRCMP function to sort items.<p>Note that you should send this message before adding any item to the list box control.<p><div class="fragment"><pre class="fragment"> <span class="keyword">static</span> <span class="keywordtype">int</span> my_strcmp (<span class="keyword">const</span> <span class="keywordtype">char</span>* s1, <span class="keyword">const</span> <span class="keywordtype">char</span>* s2, size_t n) {      ...      <span class="keywordflow">return</span> 0; } <a class="code" href="group__ctrl__listbox__msgs.htm#ga45">LB_SETSTRCMPFUNC</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)my_strcmp;</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>my_strcmp</em>&nbsp;</td><td>Your own function to compare two strings.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>LB_OKAY<br> Success</li><li>LB_ERR<br> Not an empty list box. </li></ul></dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00936">936</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga40" doxytag="listbox.h::LB_SETTEXT"></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 LB_SETTEXT&nbsp;&nbsp;&nbsp;0xF1AA          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets text of the specified item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__listbox__msgs.htm#ga40">LB_SETTEXT</a> <span class="keywordtype">int</span> index; <span class="keyword">const</span> <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 specified item. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>The string of the item to be set.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>LB_OKAY<br> Success</li><li>LB_ERR<br> Invalid item index or memory allocation error. </li></ul></dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00807">807</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><a class="anchor" name="ga23" doxytag="listbox.h::LB_SETTOPINDEX"></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 LB_SETTOPINDEX&nbsp;&nbsp;&nbsp;0xF197          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Ensures that a particular item in it is visible. <p>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.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__listbox__msgs.htm#ga23">LB_SETTOPINDEX</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 particular item to be set.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Always be zero. </dd></dl><p>Definition at line <a class="el" href="listbox_8h-source.htm#l00594">594</a> of file <a class="el" href="listbox_8h-source.htm">listbox.h</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:53 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

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