📄 group__mgext__ctrl__listview__msgs.htm
字号:
<td><p>Changes the height of the header. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga32">LVM_SETHEADHEIGHT</a> <span class="keywordtype">int</span> height; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)height; 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>height</em> </td><td>The new height of the header. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns TRUE if successful, or FALSE otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00974">974</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga34" doxytag="listview.h::LVM_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 LVM_SETITEMADDDATA 0xF138 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Associates a 32-bit data value with an item. <p>An application sends an LVM_SETITEMADDDATA message to associate a 32-bit data value specified in the <em>lParam</em> parameter with an item in the listview.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga34">LVM_SETITEMADDDATA</a> <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; <a class="code" href="group__win32__types.htm#ga4">DWORD</a> addData; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)pi; 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>pi</em> </td><td>Handle of the target item. </td></tr> <tr><td valign="top"></td><td valign="top"><em>addData</em> </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>LV_OKAY<br> Success</li><li>LV_ERR<br> Invalid item index </li></ul></dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l01027">1027</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga31" doxytag="listview.h::LVM_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 LVM_SETITEMHEIGHT 0xF135 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Changes the height of a item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga31">LVM_SETITEMHEIGHT</a> <span class="keywordtype">int</span> height; <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)pi; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)height;</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>height</em> </td><td>The new height of the item. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pi</em> </td><td>Handle of the target item.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns TRUE if successful, or FALSE otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00957">957</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga36" doxytag="listview.h::LVM_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 LVM_SETSTRCMPFUNC 0xF140 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the STRCMP function used to sort items. <p>An application sends a LVM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the Listview control.<p>Note that you should send this message before adding any item to the Listview 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__mgext__ctrl__listview__msgs.htm#ga36">LVM_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> </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>0<br> Success</li><li>-1<br> Not an empty TreeView control </li></ul></dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l01078">1078</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga20" doxytag="listview.h::LVM_SETSUBITEM"></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 LVM_SETSUBITEM 0xF124 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the attributes of a subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga20">LVM_SETSUBITEM</a> <a class="code" href="struct__LVSUBITEM.htm">PLVSUBITEM</a> p; <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)p; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)pi;</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>p</em> </td><td>Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pi</em> </td><td>Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns LV_OKAY if successful, or LV_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00770">770</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="listview.h::LVM_SETSUBITEMCOLOR"></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 LVM_SETSUBITEMCOLOR 0xF117 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the text color of a subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga7">LVM_SETSUBITEMCOLOR</a> <a class="code" href="struct__LVSUBITEM.htm">PLVSUBITEM</a> p; <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)p; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)pi;</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>p</em> </td><td>Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pi</em> </td><td>Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Always returns 0; </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00517">517</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="listview.h::LVM_SETSUBITEMTEXT"></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 LVM_SETSUBITEMTEXT 0xF123 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the text of a subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga19">LVM_SETSUBITEMTEXT</a> <a class="code" href="struct__LVSUBITEM.htm">PLVSUBITEM</a> p; <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)pi; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)p;</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>p</em> </td><td>Pointes to a PLVSUBITEM structure that contains the information of the subitem to set. If pi is not zero, nItem member of this struct has no meaning. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pi</em> </td><td>Handle of the target item. If pi equals zero, the row position of the target item is specified by nItem member of p structure.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns LV_OKAY if successful, or LV_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00746">746</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga16" doxytag="listview.h::LVM_SHOWITEM"></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 LVM_SHOWITEM 0xF120 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -