📄 group__mgext__ctrl__listview__msgs.htm
字号:
<tr> <td> </td> <td><p>Deletes a column from listview, all subitem in this column will be removed. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga5">LVM_DELCOLUMN</a> <span class="keywordtype">int</span> nCols; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)nCol; 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>nCol</em> </td><td>The index of the column to be removed. </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#l00476">476</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="listview.h::LVM_DELITEM"></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_DELITEM 0xF113 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Deletes an item form listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga3">LVM_DELITEM</a> <span class="keywordtype">int</span> nRow; <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>)nRow; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</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>nRow</em> </td><td>If pi is zero, nRow specified the row index of the target item to delete. </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 LV_OKAY if successful, or LV_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00435">435</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="listview.h::LVM_FILLSUBITEM"></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_FILLSUBITEM 0xF111 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the content of a subitem, indentified by rows and columns. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga1">LVM_FILLSUBITEM</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#l00398">398</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="listview.h::LVM_FINDITEM"></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_FINDITEM 0xF118 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Searchs a item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga8">LVM_FINDITEM</a> <a class="code" href="struct__LVFINDINFO.htm">PLVFINDINFO</a> plvfi; <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> parent; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)parent; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)plvfi;</pre></div> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Handle of the item to search in. </td></tr> <tr><td valign="top"></td><td valign="top"><em>plvfi</em> </td><td>Points to a LVFINDINFO structure containing information for searching. If parent is zero, iStart member of plvfi specifieds the start position on search.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns the handle of the found item if successful, or 0 otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00536">536</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga42" doxytag="listview.h::LVM_FOLDITEM"></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_FOLDITEM 0xF142 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Folds or unfolds an item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga42">LVM_FOLDITEM</a> <span class="keywordtype">int</span> bFold; <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>)bFold; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</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>bFold</em> </td><td>To fold or to unfold, TRUE is to fold. </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>Always returns 0. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l01133">1133</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga21" doxytag="listview.h::LVM_GETCOLUMN"></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_GETCOLUMN 0xF125 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the information about a listview column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga21">LVM_GETCOLUMN</a> <span class="keywordtype">int</span> nCol; <a class="code" href="struct__LVCOLUMN.htm">PLVCOLUMN</a> pcol; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)nCol; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)pcol;</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>nCol</em> </td><td>Index of the column. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pcol</em> </td><td>Points to a LVCOLUMN structure for retrieving the information about the column.</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#l00791">791</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="listview.h::LVM_GETCOLUMNCOUNT"></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_GETCOLUMNCOUNT 0xF11B </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the number of all the columns in listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga11">LVM_GETCOLUMNCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns the number of all the columns in listview. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00592">592</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga22" doxytag="listview.h::LVM_GETCOLUMNWIDTH"></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_GETCOLUMNWIDTH 0xF126 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the width of a listview column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga22">LVM_GETCOLUMNWIDTH</a> <span class="keywordtype">int</span> nCol; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)nCol; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)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>nCol</em> </td><td>Index of the column.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns the column width if successful, or -1 otherwise. </dd></dl><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -