📄 group__mgext__ctrl__listview__msgs.htm
字号:
lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns the handle of the current selected item. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00607">607</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="listview.h::LVM_GETSUBITEMLEN"></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_GETSUBITEMLEN 0xF121 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the text len of the subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga17">LVM_GETSUBITEMLEN</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 the text len if successful, or LV_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00704">704</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga9" doxytag="listview.h::LVM_GETSUBITEMTEXT"></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_GETSUBITEMTEXT 0xF119 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the text of a listview subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga9">LVM_GETSUBITEMTEXT</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 len of the text if successful, -1 otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00562">562</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga27" doxytag="listview.h::LVM_GETTOPVISIBLE"></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_GETTOPVISIBLE 0xF131 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the index of the topmost visible item in a listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga27">LVM_GETTOPVISIBLE</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns the index of the topmost visible item if successful, or zero. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00897">897</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga14" doxytag="listview.h::LVM_MODIFYHEAD"></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_MODIFYHEAD 0xF11E </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Changes the title of a column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga14">LVM_MODIFYHEAD</a> <a class="code" href="struct__LVCOLUMN.htm">PLVCOLUMN</a> pcol; wParam = 0; 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>pcol</em> </td><td>Pointer to a LVCOLUMN struct. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns LV_OKAY if successfull, or LV_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00639">639</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga15" doxytag="listview.h::LVM_SELECTITEM"></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_SELECTITEM 0xF11F </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Selects an item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga15">LVM_SELECTITEM</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 select. </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#l00659">659</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga18" doxytag="listview.h::LVM_SETCOLUMN"></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_SETCOLUMN 0xF122 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the attributes of a list view column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga18">LVM_SETCOLUMN</a> <a class="code" href="struct__LVCOLUMN.htm">PLVCOLUMN</a> pcol; wParam = 0; 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>pcol</em> </td><td>Points to a LVCOLUMN structure containing the new column information.</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#l00722">722</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga43" doxytag="listview.h::LVM_SETCUSTOMDRAW"></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_SETCUSTOMDRAW 0xF143 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the customized drawing functions of listview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga43">LVM_SETCUSTOMDRAW</a> <a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm">LVCUSTOMDRAWFUNCS</a> myFuncs; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)&myFuncs;</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>myFuncs</em> </td><td>Pointer to a customized drawing functions 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#l01151">1151</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga32" doxytag="listview.h::LVM_SETHEADHEIGHT"></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_SETHEADHEIGHT 0xF136 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -