⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listview_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!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.h Source File</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><div class="nav"><a class="el" href="dir_000000.htm">ext</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.htm">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.htm">ext</a></div><h1>listview.h</h1><a href="listview_8h.htm">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00021 <span class="comment">/*</span>00022 <span class="comment"> * $Id: listview.h 7370 2007-08-16 05:29:44Z xgwang $</span>00023 <span class="comment"> *</span>00024 <span class="comment"> *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, </span>00025 <span class="comment"> *                     pSOS, ThreadX, NuCleus, OSE, and Win32.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> *             Copyright (C) 2002-2007 Feynman Software.</span>00028 <span class="comment"> *             Copyright (C) 1998-2002 Wei Yongming.</span>00029 <span class="comment"> */</span>00030 00031 <span class="preprocessor">#ifndef EXT_LISTVIEW_H</span>00032 <span class="preprocessor"></span><span class="preprocessor">#define EXT_LISTVIEW_H</span>00033 <span class="preprocessor"></span>00034 <span class="preprocessor">#ifdef  __cplusplus</span>00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00036 <span class="preprocessor">#endif</span>00037 <span class="preprocessor"></span><a name="l00057"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga29">00057</a> <span class="preprocessor">#define CTRL_LISTVIEW       ("ListView")</span>00058 <span class="preprocessor"></span><a name="l00060"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga30">00060</a> <span class="preprocessor">#define LV_OKAY                 0</span>00061 <span class="preprocessor"></span><a name="l00062"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga31">00062</a> <span class="preprocessor">#define LV_ERR                  (-1)</span>00063 <span class="preprocessor"></span><a name="l00064"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga32">00064</a> <span class="preprocessor">#define LV_ERRSPACE             (-2)</span>00065 <span class="preprocessor"></span><a name="l00070"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga0">00070</a> <span class="keyword">typedef</span> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> <a class="code" href="group__mgext__ctrl__listview.htm#ga0">HLVITEM</a>;00071 <a name="l00073"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga33">00073</a> <span class="preprocessor">#define LVIF_FOLD               0x0001L</span>00074 <span class="preprocessor"></span><a name="l00079"></a><a class="code" href="struct__LVITEM.htm">00079</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__LVITEM.htm">_LVITEM</a>00080 {<a name="l00084"></a><a class="code" href="struct__LVITEM.htm#o0">00084</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVITEM.htm#o0">nItem</a>;<a name="l00086"></a><a class="code" href="struct__LVITEM.htm#o1">00086</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVITEM.htm#o1">nItemHeight</a>;<a name="l00088"></a><a class="code" href="struct__LVITEM.htm#o2">00088</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="struct__LVITEM.htm#o2">itemData</a>;00089 <a name="l00099"></a><a class="code" href="struct__LVITEM.htm#o3">00099</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="struct__LVITEM.htm#o3">dwFlags</a>;00100 00101 } <a class="code" href="struct__LVITEM.htm">LVITEM</a>;00102 <a name="l00104"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga2">00104</a> <span class="keyword">typedef</span> <a class="code" href="struct__LVITEM.htm">LVITEM</a> *<a class="code" href="struct__LVITEM.htm">PLVITEM</a>;00105 <a name="l00107"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga34">00107</a> <span class="preprocessor">#define LVFLAG_BITMAP   0x0001</span>00108 <span class="preprocessor"></span><a name="l00109"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga35">00109</a> <span class="preprocessor">#define LVFLAG_ICON         0x0002</span>00110 <span class="preprocessor"></span><a name="l00115"></a><a class="code" href="struct__LVSUBITEM.htm">00115</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__LVSUBITEM.htm">_LVSUBITEM</a>00116 {<a name="l00124"></a><a class="code" href="struct__LVSUBITEM.htm#o0">00124</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="struct__LVSUBITEM.htm#o0">flags</a>;<a name="l00126"></a><a class="code" href="struct__LVSUBITEM.htm#o1">00126</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSUBITEM.htm#o1">nItem</a>;<a name="l00128"></a><a class="code" href="struct__LVSUBITEM.htm#o2">00128</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSUBITEM.htm#o2">subItem</a>;<a name="l00130"></a><a class="code" href="struct__LVSUBITEM.htm#o3">00130</a>     <span class="keywordtype">char</span> *<a class="code" href="struct__LVSUBITEM.htm#o3">pszText</a>;<a name="l00132"></a><a class="code" href="struct__LVSUBITEM.htm#o4">00132</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSUBITEM.htm#o4">nTextMax</a>;<a name="l00134"></a><a class="code" href="struct__LVSUBITEM.htm#o5">00134</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSUBITEM.htm#o5">nTextColor</a>;<a name="l00136"></a><a class="code" href="struct__LVSUBITEM.htm#o6">00136</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="struct__LVSUBITEM.htm#o6">image</a>; 00137 } <a class="code" href="struct__LVSUBITEM.htm">LVSUBITEM</a>;<a name="l00139"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga4">00139</a> <span class="keyword">typedef</span> <a class="code" href="struct__LVSUBITEM.htm">LVSUBITEM</a> *<a class="code" href="struct__LVSUBITEM.htm">PLVSUBITEM</a>;00140 <a name="l00142"></a><a class="code" href="struct__LVSORTDATA.htm">00142</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__LVSORTDATA.htm">_LVSORTDATA</a>00143 {<a name="l00145"></a><a class="code" href="struct__LVSORTDATA.htm#o0">00145</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSORTDATA.htm#o0">ncol</a>;<a name="l00147"></a><a class="code" href="struct__LVSORTDATA.htm#o1">00147</a>     <span class="keywordtype">int</span> <a class="code" href="struct__LVSORTDATA.htm#o1">losorted</a>;<a name="l00149"></a><a class="code" href="struct__LVSORTDATA.htm#o2">00149</a>     <a class="code" href="group__handles.htm#ga1">HWND</a> <a class="code" href="struct__LVSORTDATA.htm#o2">hLV</a>;00150 } <a class="code" href="struct__LVSORTDATA.htm">LVSORTDATA</a>;<a name="l00152"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga6">00152</a> <span class="keyword">typedef</span> <a class="code" href="struct__LVSORTDATA.htm">LVSORTDATA</a> *<a class="code" href="struct__LVSORTDATA.htm">PLVSORTDATA</a>;00153 <a name="l00155"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga7">00155</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__mgext__ctrl__listview.htm#ga7">PFNLVCOMPARE</a>) (HLVITEM nItem1, HLVITEM nItem2, PLVSORTDATA sortData);00156 00157 <span class="keyword">typedef</span> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> HLVHDR;00158 <span class="keyword">typedef</span> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> HLVHDRITEM;00159 00161 <span class="comment">/* hlvhdr is reserved for extension */</span><a name="l00162"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga10">00162</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__mgext__ctrl__listview.htm#ga10">PFN_LVHDR_BKDRAWFUNC</a>)   (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HLVHDR hlvhdr, <a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="struct__RECT.htm">RECT</a> *rcDraw);<a name="l00164"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga11">00164</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__mgext__ctrl__listview.htm#ga11">PFN_LVHDR_ITEMDRAWFUNC</a>) (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, <span class="keywordtype">int</span> idx, <a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="struct__RECT.htm">RECT</a> *rcDraw);00165 00166 <a name="l00168"></a><a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm">00168</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm">_LVCUSTOMDRAWFUNCS</a>00169 {<a name="l00171"></a><a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm#o0">00171</a>     <a class="code" href="group__mgext__ctrl__listview.htm#ga10">PFN_LVHDR_BKDRAWFUNC</a>   <a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm#o0">pfnDrawHdrBk</a>;<a name="l00173"></a><a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm#o1">00173</a>     <a class="code" href="group__mgext__ctrl__listview.htm#ga11">PFN_LVHDR_ITEMDRAWFUNC</a> <a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm#o1">pfnDrawHdrItem</a>;00174 } <a class="code" href="struct__LVCUSTOMDRAWFUNCS.htm">LVCUSTOMDRAWFUNCS</a>;00175 00176 <a name="l00179"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga36">00179</a> <span class="preprocessor">#define LVCF_LEFTALIGN          0x0000</span>00180 <span class="preprocessor"></span><a name="l00181"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga37">00181</a> <span class="preprocessor">#define LVCF_RIGHTALIGN         0x0001</span>00182 <span class="preprocessor"></span><a name="l00183"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga38">00183</a> <span class="preprocessor">#define LVCF_CENTERALIGN        0x0002</span>00184 <span class="preprocessor"></span><a name="l00185"></a><a class="code" href="group__mgext__ctrl__listview.htm#ga39">00185</a> <span class="preprocessor">#define LVCF_TREEVIEW           0x0004</span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -