📄 gridview_8h-source.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: gridview.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 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><div class="nav"><a class="el" href="dir_000000.htm">ext</a> / <a class="el" href="dir_000001.htm">include</a> / <a class="el" href="dir_000002.htm">ext</a></div><h1>gridview.h</h1><a href="gridview_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: gridview.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_GRIDVIEW_H</span>00032 <span class="preprocessor"></span><span class="preprocessor">#define EXT_GRIDVIEW_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="l00056"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga10">00056</a> <span class="preprocessor">#define CTRL_GRIDVIEW "gridview"</span>00057 <span class="preprocessor"></span>00058 <span class="preprocessor">#define GVS_COLFIRST 0x0000</span>00059 <span class="preprocessor"></span><span class="preprocessor">#define GVS_ROWFIRST 0x0001</span>00060 <span class="preprocessor"></span><a name="l00065"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga13">00065</a> <span class="preprocessor">#define GRID_OKAY 0</span>00066 <span class="preprocessor"></span><a name="l00071"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga14">00071</a> <span class="preprocessor">#define GRID_ERR (-1)</span>00072 <span class="preprocessor"></span><a name="l00074"></a><a class="code" href="struct__GRIDVIEWDATA.htm">00074</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__GRIDVIEWDATA.htm">_GRIDVIEWDATA</a>00075 {<a name="l00077"></a><a class="code" href="struct__GRIDVIEWDATA.htm#o0">00077</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDVIEWDATA.htm#o0">nr_rows</a>;<a name="l00079"></a><a class="code" href="struct__GRIDVIEWDATA.htm#o1">00079</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDVIEWDATA.htm#o1">nr_cols</a>;<a name="l00081"></a><a class="code" href="struct__GRIDVIEWDATA.htm#o2">00081</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDVIEWDATA.htm#o2">row_height</a>;<a name="l00083"></a><a class="code" href="struct__GRIDVIEWDATA.htm#o3">00083</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDVIEWDATA.htm#o3">col_width</a>;00084 } <a class="code" href="struct__GRIDVIEWDATA.htm">GRIDVIEWDATA</a>;00085 <a name="l00088"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga15">00088</a> <span class="preprocessor">#define GV_HALIGN_LEFT 0x00000001</span>00089 <span class="preprocessor"></span><a name="l00090"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga16">00090</a> <span class="preprocessor">#define GV_HALIGN_RIGHT 0x00000002</span>00091 <span class="preprocessor"></span><a name="l00092"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga17">00092</a> <span class="preprocessor">#define GV_HALIGN_CENTER 0x00000003</span>00093 <span class="preprocessor"></span><a name="l00094"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga18">00094</a> <span class="preprocessor">#define GV_VALIGN_TOP 0x00000010</span>00095 <span class="preprocessor"></span><a name="l00096"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga19">00096</a> <span class="preprocessor">#define GV_VALIGN_BOTTOM 0x00000020</span>00097 <span class="preprocessor"></span><a name="l00098"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga20">00098</a> <span class="preprocessor">#define GV_VALIGN_CENTER 0x00000030</span>00099 <span class="preprocessor"></span><a name="l00101"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga21">00101</a> <span class="preprocessor">#define GV_HALIGN_MASK 0x0000000F</span>00102 <span class="preprocessor"></span><a name="l00104"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga22">00104</a> <span class="preprocessor">#define GV_VALIGN_MASK 0x000000F0</span>00105 <span class="preprocessor"></span><a name="l00107"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga23">00107</a> <span class="preprocessor">#define GV_TYPE_UNKNOWN 0x00000000</span>00108 <span class="preprocessor"></span><a name="l00109"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga24">00109</a> <span class="preprocessor">#define GV_TYPE_TEXT 0x00000100</span>00110 <span class="preprocessor"></span><a name="l00111"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga25">00111</a> <span class="preprocessor">#define GV_TYPE_NUMBER 0x00000200</span>00112 <span class="preprocessor"></span><a name="l00113"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga26">00113</a> <span class="preprocessor">#define GV_TYPE_CHECKBOX 0x00000300</span>00114 <span class="preprocessor"></span><a name="l00115"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga27">00115</a> <span class="preprocessor">#define GV_TYPE_SELECTION 0x00000400</span>00116 <span class="preprocessor"></span><a name="l00117"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga28">00117</a> <span class="preprocessor">#define GV_TYPE_HEADER 0x00000500</span>00118 <span class="preprocessor"></span><a name="l00119"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga29">00119</a> <span class="preprocessor">#define GV_TYPE_TABLEHEADER 0x00000600</span>00120 <span class="preprocessor"></span><a name="l00122"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga30">00122</a> <span class="preprocessor">#define GV_TYPE_MASK 0x0000FF00</span>00123 <span class="preprocessor"></span><a name="l00125"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga31">00125</a> <span class="preprocessor">#define GVS_WITHICON 0x00010000</span>00126 <span class="preprocessor"></span><a name="l00127"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga32">00127</a> <span class="preprocessor">#define GVS_WITHCHECKBOX 0x00020000</span>00128 <span class="preprocessor"></span><a name="l00130"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga33">00130</a> <span class="preprocessor">#define GVS_MULTLINE 0x00100000</span>00131 <span class="preprocessor"></span><a name="l00132"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga34">00132</a> <span class="preprocessor">#define GVS_READONLY 0x00200000</span>00133 <span class="preprocessor"></span><a name="l00134"></a><a class="code" href="group__mgext__ctrl__grid.htm#ga35">00134</a> <span class="preprocessor">#define GVS_BOXCHECKED 0x00400000</span>00135 <span class="preprocessor"></span>00136 <span class="preprocessor">#define GVITEM_STYLE 0x0001</span>00137 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_BGCOLOR 0x0002</span>00138 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_FGCOLOR 0x0004</span>00139 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_FONT 0x0008</span>00140 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_IMAGE 0x0010</span>00141 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_MAINCONTENT 0x0020 </span>00142 <span class="preprocessor"></span><span class="preprocessor">#define GVITEM_SIZE 0x0040</span>00143 <span class="preprocessor"></span>00144 <span class="preprocessor">#define GVITEM_ALLCONTENT 0x00FF</span>00145 <span class="preprocessor"></span><a name="l00147"></a><a class="code" href="struct__GRIDCELLS.htm">00147</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__GRIDCELLS.htm">_GRIDCELLS</a>00148 {<a name="l00150"></a><a class="code" href="struct__GRIDCELLS.htm#o0">00150</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDCELLS.htm#o0">row</a>;<a name="l00152"></a><a class="code" href="struct__GRIDCELLS.htm#o1">00152</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDCELLS.htm#o1">column</a>;<a name="l00154"></a><a class="code" href="struct__GRIDCELLS.htm#o2">00154</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDCELLS.htm#o2">width</a>;<a name="l00156"></a><a class="code" href="struct__GRIDCELLS.htm#o3">00156</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDCELLS.htm#o3">height</a>;00157 }<a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>;00158 00159 <span class="keyword">typedef</span> int (*GRIDCELLEVALCALLBACK)(<a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>* target, <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>* source, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> dwAddData);00160 00161 <span class="keyword">typedef</span> <span class="keyword">struct </span>_GRIDCELLDEPENDENCE00162 {00164 <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a> source;00166 <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a> target;00168 GRIDCELLEVALCALLBACK callback;00170 <a class="code" href="group__win32__types.htm#ga4">DWORD</a> dwAddData;00171 }GRIDCELLDEPENDENCE;00172 <a name="l00174"></a><a class="code" href="struct__GRIDCELLDATAHEADER.htm">00174</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__GRIDCELLDATAHEADER.htm">_GRIDCELLDATAHEADER</a>00175 {<a name="l00177"></a><a class="code" href="struct__GRIDCELLDATAHEADER.htm#o0">00177</a> <span class="keywordtype">int</span> <a class="code" href="struct__GRIDCELLDATAHEADER.htm#o0">size</a>;<a name="l00179"></a><a class="code" href="struct__GRIDCELLDATAHEADER.htm#o1">00179</a> <span class="keywordtype">char</span>* <a class="code" href="struct__GRIDCELLDATAHEADER.htm#o1">buff</a>;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -