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

📄 group__ctrl__combobox__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 4 页
字号:
An application sends an CB_SETITEMADDDATA message to associate a 32-bit data value specified in the lParam parameter with an item in the list box that is specified in the wParam parameter.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga17">CB_SETITEMADDDATA</a> <span class="keywordtype">int</span> index; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> addData; 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>)addData;</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>addData</em>&nbsp;</td><td>the 32-bit data value which will associated with the item.</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#l00536">536</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga19" doxytag="combobox.h::CB_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 CB_SETITEMHEIGHT&nbsp;&nbsp;&nbsp;0xF153          </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 of the list box in a combo box. <p>An application sends an CB_SETITEMHEIGHT message to set the height of all 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#ga19">CB_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 of the list box.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The effective height of item of the list box. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00573">573</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga34" doxytag="combobox.h::CB_SETSPINFORMAT"></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_SETSPINFORMAT&nbsp;&nbsp;&nbsp;0xF162          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the format string of value for CBS_AUTOSPIN type. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga34">CB_SETSPINFORMAT</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* format; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)format;</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>format</em>&nbsp;</td><td>A format string can be used by <em>sprintf</em> function to format an interger.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>CB_OKAY on success; otherwise CB_ERR. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00659">659</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga39" doxytag="combobox.h::CB_SETSPINPACE"></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_SETSPINPACE&nbsp;&nbsp;&nbsp;0xF167          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines the pace and the fast pace of the spin box in a combo box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga39">CB_SETSPINPACE</a> <span class="keywordtype">int</span> new_pace; <span class="keywordtype">int</span> new_fastpace; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)new_pace; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)new_fastpace;</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>new_pace</em>&nbsp;</td><td>The new pace value of the spin box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>new_fastpace</em>&nbsp;</td><td>The new fast pace value of the spin box.</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#l00752">752</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga35" doxytag="combobox.h::CB_SETSPINRANGE"></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_SETSPINRANGE&nbsp;&nbsp;&nbsp;0xF163          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines the range of the spin box in a combo box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga35">CB_SETSPINRANGE</a> <span class="keywordtype">int</span> new_min; <span class="keywordtype">int</span> new_max; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)new_min; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)new_max;</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>new_min</em>&nbsp;</td><td>The new minimum value of the spin box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>new_max</em>&nbsp;</td><td>The new maximum value of the spin box.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>CB_OKAY on success; otherwise CB_ERR to indicate invalid parameters. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00679">679</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga37" doxytag="combobox.h::CB_SETSPINVALUE"></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_SETSPINVALUE&nbsp;&nbsp;&nbsp;0xF165          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines the value of the spin box in a combo box. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga37">CB_SETSPINVALUE</a> <span class="keywordtype">int</span> new_value; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)new_value; 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>new_value</em>&nbsp;</td><td>The new value of the spin box.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>CB_OKAY on success; otherwise CB_ERR to indicate invalid parameters. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00717">717</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga43" doxytag="combobox.h::CB_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 CB_SETSTRCMPFUNC&nbsp;&nbsp;&nbsp;0xF172          </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 a CB_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the combo-box.<p>Note that you should send this message before adding any item to the combo-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__combobox__msgs.htm#ga43">CB_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>CB_OKAY<br> Success</li><li>CB_ERR<br> This combobox has no list box or it is not an empty list box. </li></ul></dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00843">843</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>.    </td>  </tr></table><a class="anchor" name="ga41" doxytag="combobox.h::CB_SPIN"></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_SPIN&nbsp;&nbsp;&nbsp;0xF170          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>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#ga41">CB_SPIN</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#l00791">791</a> of file <a class="el" href="combobox_8h-source.htm">combobox.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 + -