📄 group__mgext__ctrl__listview__msgs.htm
字号:
Definition at line <a class="el" href="listview_8h-source.htm#l00809">809</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga23" doxytag="listview.h::LVM_GETITEM"></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_GETITEM 0xF127 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the item's attributes. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga23">LVM_GETITEM</a> <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> pi; <a class="code" href="struct__LVITEM.htm">LVITEM</a> item_info; 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>)&item_info;</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>item_info</em> </td><td>Used for storing the target item's attributes. If pi is zero, nItem field of item_info specified the row index of the target item to get.</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#l00831">831</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga33" doxytag="listview.h::LVM_GETITEMADDDATA"></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_GETITEMADDDATA 0xF137 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the 32-bit data value associated with an item. <p>An application sends an LVM_GETITEMADDDATA message to a listview to get the 32-bit data value stored for the item with index of <em>wParam</em>; By default this is zero. An application must set the item data value by sending an LVM_SETITEMADDDATA message to the listview for this value to have meaning.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga33">LVM_GETITEMADDDATA</a> <span class="keywordtype">int</span> index; <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>)index; 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>pi</em> </td><td>Handle of the target item. </td></tr> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>The index of the specified item. If pi is not zero, use pi instead.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The 32-bit data value associated with an item on success, otherwise -1 to indicate an error. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l01001">1001</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga10" doxytag="listview.h::LVM_GETITEMCOUNT"></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_GETITEMCOUNT 0xF11A </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the number of all the items(rows) in a listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga10">LVM_GETITEMCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The number of the items. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00577">577</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga24" doxytag="listview.h::LVM_GETITEMSTATE"></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_GETITEMSTATE 0xF128 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the state of a listview item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga24">LVM_GETITEMSTATE</a> <a class="code" href="group__win32__types.htm#ga6">UINT</a> mask; <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>)mask;</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>mask</em> </td><td>Contains state information to retrieve, can be the combination of the following values.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns the current state of the specified item. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00852">852</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga41" doxytag="listview.h::LVM_GETRELATEDITEM"></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_GETRELATEDITEM 0xF141 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrives related item of specific item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga41">LVM_GETRELATEDITEM</a> <span class="keywordtype">int</span> related; <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)related; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)item;</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>related</em> </td><td>A integer which indicates the relationship between the item to retrive and the specified item, can be one of the following values:<ul><li>TVIR_PARENT<br> To retrive the parent item of the specified item.</li><li>TVIR_FIRSTCHILD<br> To retrive the first child item of the specified item.</li><li>TVIR_NEXTSIBLING<br> To retrive the next sibling item of the specified item.</li><li>TVIR_PREVSIBLING<br> To retrive the previous sibling item of the specified item.</li></ul></td></tr> <tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>The handle to the known item.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle of the related item on success, otherwise 0. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l01113">1113</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga25" doxytag="listview.h::LVM_GETSELECTEDCOLUMN"></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_GETSELECTEDCOLUMN 0xF129 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the index of the currently selected column of a listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga25">LVM_GETSELECTEDCOLUMN</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns the index of the selected column. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00867">867</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga26" doxytag="listview.h::LVM_GETSELECTEDCOUNT"></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_GETSELECTEDCOUNT 0xF130 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the number of the selected items in a listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga26">LVM_GETSELECTEDCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns the number of the selected items. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00882">882</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga12" doxytag="listview.h::LVM_GETSELECTEDITEM"></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_GETSELECTEDITEM 0xF11C </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the current selected item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga12">LVM_GETSELECTEDITEM</a> wParam = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -