📄 group__mgext__ctrl__listview__msgs.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Messages of ListView control</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Messages of ListView control<br><small>[<a class="el" href="group__mgext__ctrl__listview.htm">ListView control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga0">LVM_ADDITEM</a> 0xF110<dl class="el"><dd class="mdescRight">Adds a item to listview, this item is also called a row. <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga1">LVM_FILLSUBITEM</a> 0xF111<dl class="el"><dd class="mdescRight">Sets the content of a subitem, indentified by rows and columns. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga2">LVM_ADDCOLUMN</a> 0xF112<dl class="el"><dd class="mdescRight">Adds a new column to listview, indentified by column. <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga3">LVM_DELITEM</a> 0xF113<dl class="el"><dd class="mdescRight">Deletes an item form listview. <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga4">LVM_CLEARSUBITEM</a> 0xF114<dl class="el"><dd class="mdescRight">Clears the content of a subitem. <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga5">LVM_DELCOLUMN</a> 0xF115<dl class="el"><dd class="mdescRight">Deletes a column from listview, all subitem in this column will be removed. <a href="#ga5"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga6">LVM_COLSORT</a> 0xF116<dl class="el"><dd class="mdescRight">Sorts all subitems according to a certain column. <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga7">LVM_SETSUBITEMCOLOR</a> 0xF117<dl class="el"><dd class="mdescRight">Sets the text color of a subitem. <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga8">LVM_FINDITEM</a> 0xF118<dl class="el"><dd class="mdescRight">Searchs a item. <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga9">LVM_GETSUBITEMTEXT</a> 0xF119<dl class="el"><dd class="mdescRight">Retrieves the text of a listview subitem. <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga10">LVM_GETITEMCOUNT</a> 0xF11A<dl class="el"><dd class="mdescRight">Gets the number of all the items(rows) in a listview. <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga11">LVM_GETCOLUMNCOUNT</a> 0xF11B<dl class="el"><dd class="mdescRight">Gets the number of all the columns in listview. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga12">LVM_GETSELECTEDITEM</a> 0xF11C<dl class="el"><dd class="mdescRight">Gets the current selected item. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga13">LVM_DELALLITEM</a> 0xF11D<dl class="el"><dd class="mdescRight">Removes all the items in listview. <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga14">LVM_MODIFYHEAD</a> 0xF11E<dl class="el"><dd class="mdescRight">Changes the title of a column. <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga15">LVM_SELECTITEM</a> 0xF11F<dl class="el"><dd class="mdescRight">Selects an item. <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga16">LVM_SHOWITEM</a> 0xF120<dl class="el"><dd class="mdescRight">Makes the item is entirely visible in the list view. <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga17">LVM_GETSUBITEMLEN</a> 0xF121<dl class="el"><dd class="mdescRight">Gets the text len of the subitem. <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga18">LVM_SETCOLUMN</a> 0xF122<dl class="el"><dd class="mdescRight">Sets the attributes of a list view column. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga19">LVM_SETSUBITEMTEXT</a> 0xF123<dl class="el"><dd class="mdescRight">Sets the text of a subitem. <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga20">LVM_SETSUBITEM</a> 0xF124<dl class="el"><dd class="mdescRight">Sets the attributes of a subitem. <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga21">LVM_GETCOLUMN</a> 0xF125<dl class="el"><dd class="mdescRight">Retrieves the information about a listview column. <a href="#ga21"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga22">LVM_GETCOLUMNWIDTH</a> 0xF126<dl class="el"><dd class="mdescRight">Retrieves the width of a listview column. <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga23">LVM_GETITEM</a> 0xF127<dl class="el"><dd class="mdescRight">Retrieves the item's attributes. <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga24">LVM_GETITEMSTATE</a> 0xF128<dl class="el"><dd class="mdescRight">Retrieves the state of a listview item. <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga25">LVM_GETSELECTEDCOLUMN</a> 0xF129<dl class="el"><dd class="mdescRight">Retrieves the index of the currently selected column of a listview. <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga26">LVM_GETSELECTEDCOUNT</a> 0xF130<dl class="el"><dd class="mdescRight">Retrieves the number of the selected items in a listview. <a href="#ga26"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga27">LVM_GETTOPVISIBLE</a> 0xF131<dl class="el"><dd class="mdescRight">Retrieves the index of the topmost visible item in a listview. <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga30">LVM_SORTITEMS</a> 0xF134<dl class="el"><dd class="mdescRight">Uses an application-defined comparision function to sort the items. <a href="#ga30"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga31">LVM_SETITEMHEIGHT</a> 0xF135<dl class="el"><dd class="mdescRight">Changes the height of a item. <a href="#ga31"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga32">LVM_SETHEADHEIGHT</a> 0xF136<dl class="el"><dd class="mdescRight">Changes the height of the header. <a href="#ga32"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga33">LVM_GETITEMADDDATA</a> 0xF137<dl class="el"><dd class="mdescRight">Gets the 32-bit data value associated with an item. <a href="#ga33"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga34">LVM_SETITEMADDDATA</a> 0xF138<dl class="el"><dd class="mdescRight">Associates a 32-bit data value with an item. <a href="#ga34"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga35">LVM_CHOOSEITEM</a> 0xF139<dl class="el"><dd class="mdescRight">Selects and shows an item. <a href="#ga35"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga36">LVM_SETSTRCMPFUNC</a> 0xF140<dl class="el"><dd class="mdescRight">Sets the STRCMP function used to sort items. <a href="#ga36"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga41">LVM_GETRELATEDITEM</a> 0xF141<dl class="el"><dd class="mdescRight">Retrives related item of specific item. <a href="#ga41"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga42">LVM_FOLDITEM</a> 0xF142<dl class="el"><dd class="mdescRight">Folds or unfolds an item. <a href="#ga42"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview__msgs.htm#ga43">LVM_SETCUSTOMDRAW</a> 0xF143<dl class="el"><dd class="mdescRight">Sets the customized drawing functions of listview. <a href="#ga43"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga2" doxytag="listview.h::LVM_ADDCOLUMN"></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_ADDCOLUMN 0xF112 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adds a new column to listview, indentified by column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga2">LVM_ADDCOLUMN</a> <a class="code" href="struct__LVCOLUMN.htm">PLVCOLUMN</a> p; wParam = 0; 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 LVCOLUMN structure that contains the information about the new column to be added. </td></tr> </table></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00415">415</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga0" doxytag="listview.h::LVM_ADDITEM"></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_ADDITEM 0xF110 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adds a item to listview, this item is also called a row. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga0">LVM_ADDITEM</a> <a class="code" href="struct__LVITEM.htm">PLVITEM</a> p <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; p =(<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)lParam;</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 LVITEM structure that contains the information of the new item to be added. nItem member of the LVITEM struct speficied the item position in its parent item, beginning with zero. </td></tr> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Handle of the parent item into which the new item is about to insert. If parent equals zero, the parent item will be the root of listview.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns the handle of the new item if successful, or 0 otherwise. </dd></dl><p>Definition at line <a class="el" href="listview_8h-source.htm#l00374">374</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga35" doxytag="listview.h::LVM_CHOOSEITEM"></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_CHOOSEITEM 0xF139 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Selects and shows an item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga35">LVM_CHOOSEITEM</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 choose. </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#l01047">1047</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="listview.h::LVM_CLEARSUBITEM"></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_CLEARSUBITEM 0xF114 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Clears the content of a subitem. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga4">LVM_CLEARSUBITEM</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 clear. 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#l00459">459</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga6" doxytag="listview.h::LVM_COLSORT"></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_COLSORT 0xF116 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sorts all subitems according to a certain column. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__listview__msgs.htm#ga6">LVM_COLSORT</a> <span class="keywordtype">int</span> ncol; 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>Index of the column. </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#l00493">493</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga13" doxytag="listview.h::LVM_DELALLITEM"></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_DELALLITEM 0xF11D </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Removes all the items in listview. <p><div class="fragment"><pre class="fragment"> LVM_DEALLITEM wParam = 0; lParam = 0;</pre></div><p><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#l00622">622</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="listview.h::LVM_DELCOLUMN"></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_DELCOLUMN 0xF115 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -