📄 group__mgext__ctrl__listview.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: 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>ListView control<br><small>[<a class="el" href="group__mgext__controls.htm">Controls defined in libmgext</a>]</small></h1><h2>Modules</h2><ul><li><a class="el" href="group__mgext__ctrl__listview__styles.htm">Styles of listview control</a><li><a class="el" href="group__mgext__ctrl__listview__msgs.htm">Messages of ListView control</a><li><a class="el" href="group__mgext__ctrl__listview__ncs.htm">Notification code of ListView control</a></ul><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__LVITEM.htm">_LVITEM</a><li>struct <a class="el" href="struct__LVSUBITEM.htm">_LVSUBITEM</a><li>struct <a class="el" href="struct__LVSORTDATA.htm">_LVSORTDATA</a><li>struct <a class="el" href="struct__LVCUSTOMDRAWFUNCS.htm">_LVCUSTOMDRAWFUNCS</a><li>struct <a class="el" href="struct__LVCOLUMN.htm">_LVCOLUMN</a><li>struct <a class="el" href="struct__LVFINDINFO.htm">_LVFINDINFO</a><li>struct <a class="el" href="struct__LVNM__NORMAL.htm">_LVNM_NORMAL</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga29">CTRL_LISTVIEW</a> ("ListView")<dl class="el"><dd class="mdescRight">The class name of listview control. <a href="#ga29"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga30">LV_OKAY</a> 0<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga31">LV_ERR</a> (-1)<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga32">LV_ERRSPACE</a> (-2)<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga33">LVIF_FOLD</a> 0x0001L<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga34">LVFLAG_BITMAP</a> 0x0001<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga35">LVFLAG_ICON</a> 0x0002<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga36">LVCF_LEFTALIGN</a> 0x0000<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga37">LVCF_RIGHTALIGN</a> 0x0001<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga38">LVCF_CENTERALIGN</a> 0x0002<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga39">LVCF_TREEVIEW</a> 0x0004<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga40">LVHF_LEFTALIGN</a> 0x0000<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga41">LVHF_RIGHTALIGN</a> 0x0004<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga42">LVHF_CENTERALIGN</a> 0x0008<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga43">LVFF_TEXT</a> 0x0001<li>#define <a class="el" href="group__mgext__ctrl__listview.htm#ga44">LVFF_ADDDATA</a> 0x0002</ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="group__handles.htm#ga0">GHANDLE</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a><dl class="el"><dd class="mdescRight">List view item handle. <a href="#ga0"></a><br></dl><li>typedef <a class="el" href="struct__LVITEM.htm">_LVITEM</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga1">LVITEM</a><li>typedef <a class="el" href="struct__LVITEM.htm">LVITEM</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga2">PLVITEM</a><li>typedef <a class="el" href="struct__LVSUBITEM.htm">_LVSUBITEM</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga3">LVSUBITEM</a><li>typedef <a class="el" href="struct__LVSUBITEM.htm">LVSUBITEM</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga4">PLVSUBITEM</a><li>typedef <a class="el" href="struct__LVSORTDATA.htm">_LVSORTDATA</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga5">LVSORTDATA</a><li>typedef <a class="el" href="struct__LVSORTDATA.htm">LVSORTDATA</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga6">PLVSORTDATA</a><li>typedef int(* <a class="el" href="group__mgext__ctrl__listview.htm#ga7">PFNLVCOMPARE</a> )(<a class="el" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> nItem1, <a class="el" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a> nItem2, <a class="el" href="struct__LVSORTDATA.htm">PLVSORTDATA</a> sortData)<li>typedef void(* <a class="el" href="group__mgext__ctrl__listview.htm#ga10">PFN_LVHDR_BKDRAWFUNC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, HLVHDR hlvhdr, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__RECT.htm">RECT</a> *rcDraw)<li>typedef void(* <a class="el" href="group__mgext__ctrl__listview.htm#ga11">PFN_LVHDR_ITEMDRAWFUNC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int idx, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__RECT.htm">RECT</a> *rcDraw)<li>typedef <a class="el" href="struct__LVCUSTOMDRAWFUNCS.htm">_LVCUSTOMDRAWFUNCS</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga12">LVCUSTOMDRAWFUNCS</a><li>typedef <a class="el" href="struct__LVCOLUMN.htm">_LVCOLUMN</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga13">LVCOLUMN</a><li>typedef <a class="el" href="struct__LVCOLUMN.htm">LVCOLUMN</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga14">PLVCOLUMN</a><li>typedef <a class="el" href="struct__LVFINDINFO.htm">_LVFINDINFO</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga15">LVFINDINFO</a><li>typedef <a class="el" href="struct__LVFINDINFO.htm">LVFINDINFO</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga16">PLVFINDINFO</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">_LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga17">LVNM_NORMAL</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga18">PLVNM_NORMAL</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga19">LVNM_KEYDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_KEYDOWN</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga20">PLVNM_KEYDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga21">LVNM_HEADRDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_HEADRDOWN</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga22">PLVNM_HEADRDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga23">LVNM_HEADRUP</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_HEADRUP</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga24">PLVNM_HEADUP</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga25">LVNM_ITEMRDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_ITEMRDOWN</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga26">PLVNM_ITEMRDOWN</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_NORMAL</a> <a class="el" href="group__mgext__ctrl__listview.htm#ga27">LVNM_ITEMRUP</a><li>typedef <a class="el" href="struct__LVNM__NORMAL.htm">LVNM_ITEMRUP</a> * <a class="el" href="group__mgext__ctrl__listview.htm#ga28">PLVNM_ITEMRUP</a></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga29" doxytag="listview.h::CTRL_LISTVIEW"></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 CTRL_LISTVIEW ("ListView") </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The class name of listview control. <p><p>Definition at line <a class="el" href="listview_8h-source.htm#l00057">57</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::LV_ERR"></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 LV_ERR (-1) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Listview return value <p>Definition at line <a class="el" href="listview_8h-source.htm#l00062">62</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::LV_ERRSPACE"></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 LV_ERRSPACE (-2) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Listview return value <p>Definition at line <a class="el" href="listview_8h-source.htm#l00064">64</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga30" doxytag="listview.h::LV_OKAY"></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 LV_OKAY 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Listview return value <p>Definition at line <a class="el" href="listview_8h-source.htm#l00060">60</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga38" doxytag="listview.h::LVCF_CENTERALIGN"></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 LVCF_CENTERALIGN 0x0002 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Column text center align <p>Definition at line <a class="el" href="listview_8h-source.htm#l00183">183</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::LVCF_LEFTALIGN"></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 LVCF_LEFTALIGN 0x0000 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Column text left align, default <p>Definition at line <a class="el" href="listview_8h-source.htm#l00179">179</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga37" doxytag="listview.h::LVCF_RIGHTALIGN"></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 LVCF_RIGHTALIGN 0x0001 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Column text right align <p>Definition at line <a class="el" href="listview_8h-source.htm#l00181">181</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga39" doxytag="listview.h::LVCF_TREEVIEW"></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 LVCF_TREEVIEW 0x0004 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Column treeview style <p>Definition at line <a class="el" href="listview_8h-source.htm#l00185">185</a> of file <a class="el" href="listview_8h-source.htm">listview.h</a>. </td> </tr></table><a class="anchor" name="ga44" doxytag="listview.h::LVFF_ADDDATA"></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 LVFF_ADDDATA 0x0002 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Search by addtional data <p>Definition at line <a class="el" href="listview_8h-source.htm#l00223">223</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::LVFF_TEXT"></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 LVFF_TEXT 0x0001 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Search by text <p>Definition at line <a class="el" href="listview_8h-source.htm#l00221">221</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::LVFLAG_BITMAP"></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 LVFLAG_BITMAP 0x0001 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Listview bitmap flags <p>Definition at line <a class="el" href="listview_8h-source.htm#l00107">107</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::LVFLAG_ICON"></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 LVFLAG_ICON 0x0002 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Listview icon flags <p>Definition at line <a class="el" href="listview_8h-source.htm#l00109">109</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::LVHF_CENTERALIGN"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -