📄 group__ctrl__combobox__msgs.htm
字号:
<tr> <td> </td> <td><p>Gets 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#ga40">CB_GETSPINPACE</a> <span class="keywordtype">int</span> *spin_pace; <span class="keywordtype">int</span> *spin_fastpace; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)spin_pace; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)spin_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>spin_pace</em> </td><td>Pointer to the data to retreive the new pace value of the spin box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>spin_fastpace</em> </td><td>Pointer to the data to retreive 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#l00772">772</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga36" doxytag="combobox.h::CB_GETSPINRANGE"></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_GETSPINRANGE 0xF164 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets 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#ga36">CB_GETSPINRANGE</a> <span class="keywordtype">int</span> *spin_min; <span class="keywordtype">int</span> *spin_max; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)spin_min; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)spin_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>spin_min</em> </td><td>The minimum value of the spin box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>spin_max</em> </td><td>The maximum 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#l00699">699</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga38" doxytag="combobox.h::CB_GETSPINVALUE"></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_GETSPINVALUE 0xF166 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the current 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#ga38">CB_GETSPINVALUE</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The current value of the spin box. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00732">732</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga10" doxytag="combobox.h::CB_INSERTSTRING"></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_INSERTSTRING 0xF14A </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Inserts a string to the list box of a combo box. <p>An application sends a CB_INSERTSTRING message to insert a string to the list box of a combo box. Unlike the CB_ADDSTRING message, the CB_INSERTSTRING message do not cause a list to be sorted.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga10">CB_INSERTSTRING</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> </td><td>The index of the position at which to insert the string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </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#l00422">422</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="combobox.h::CB_LIMITTEXT"></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_LIMITTEXT 0xF141 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Limits the length of text in the edit control. <p>An application sends a CB_LIMITTEXT message to limit the length of the text the user may type into the edit control of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga1">CB_LIMITTEXT</a> <span class="keywordtype">int</span> newLimit; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)newLimit; 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>newLimit</em> </td><td>Specifies the maximum number of characters the user can enter.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The return value is always zero. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00239">239</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="combobox.h::CB_RESETCONTENT"></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_RESETCONTENT 0xF14B </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Removes all items from the list box and edit control. <p>An application sends a CB_RESETCONTENT message remove all items from the list box and edit control of a combo box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__combobox__msgs.htm#ga11">CB_RESETCONTENT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Always be zero. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00440">440</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga14" doxytag="combobox.h::CB_SETCURSEL"></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_SETCURSEL 0xF14E </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Selects a string in the list of a combo box. <p><div class="fragment"><pre class="fragment"> CB_SETCURLSEL <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> </td><td>The index of the string to select.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>CB_OKAY on success; otherwise CB_ERR to indicate an invalid index. </dd></dl><p>Definition at line <a class="el" href="combobox_8h-source.htm#l00485">485</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="combobox.h::CB_SETEDITSEL"></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_SETEDITSEL 0xF142 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the starting and ending character positions of the current selection. <p>An application sends a CB_SETEDITSEL message to set 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#ga2">CB_SETEDITSEL</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>)start; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)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> </td><td>The starting position of the selection. </td></tr> <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>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#l00263">263</a> of file <a class="el" href="combobox_8h-source.htm">combobox.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="combobox.h::CB_SETITEMADDDATA"></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_SETITEMADDDATA 0xF151 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets a 32-bit data value with the specified item. <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -