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

📄 scrollview_8h-source.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!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: scrollview.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_000003.htm">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000004.htm">ctrl</a></div><h1>scrollview.h</h1><a href="scrollview_8h.htm">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00019 <span class="comment">/*</span>00020 <span class="comment"> * $Id: scrollview.h 7365 2007-08-16 05:22:17Z xgwang $</span>00021 <span class="comment"> *</span>00022 <span class="comment"> *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, </span>00023 <span class="comment"> *                     pSOS, ThreadX, NuCleus, OSE, and Win32.</span>00024 <span class="comment"> *</span>00025 <span class="comment"> *             Copyright (C) 2002-2007 Feynman Software.</span>00026 <span class="comment"> *             Copyright (C) 1999-2002 Wei Yongming.</span>00027 <span class="comment"> */</span>00028 00029 <span class="preprocessor">#ifndef _MGUI_CTRL_SCROLLVIEW_H</span>00030 <span class="preprocessor"></span><span class="preprocessor">#define _MGUI_CTRL_SCROLLVIEW_H</span>00031 <span class="preprocessor"></span> 00032 <span class="preprocessor">#ifdef __cplusplus</span>00033 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00034 <span class="preprocessor">#endif  </span><span class="comment">/* __cplusplus */</span>00035 <a name="l00059"></a><a class="code" href="group__ctrl__scrollview.htm#ga18">00059</a> <span class="preprocessor">#define CTRL_SCROLLVIEW           ("scrollview")</span>00060 <span class="preprocessor"></span><a name="l00067"></a><a class="code" href="group__ctrl__scrollview.htm#ga19">00067</a> <span class="preprocessor">#define CTRL_SCROLLWND            ("scrollwnd")</span>00068 <span class="preprocessor"></span>00072 MG_EXPORT <span class="keywordtype">int</span> GUIAPI <a class="code" href="group__ctrl__scrollview.htm#ga11">DefaultContainerProc</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, <span class="keywordtype">int</span> message, <a class="code" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lParam);00073 <a name="l00075"></a><a class="code" href="group__ctrl__scrollview.htm#ga0">00075</a> <span class="keyword">typedef</span> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> <a class="code" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a>;00076 <a name="l00080"></a><a class="code" href="struct__CONTAINERINFO.htm">00080</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__CONTAINERINFO.htm">_CONTAINERINFO</a>00081 {00082 <span class="preprocessor">#if 0</span>00083 <span class="preprocessor"></span>    <a class="code" href="group__win32__types.htm#ga4">DWORD</a>       dwStyle;                00084     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>       dwExStyle;              00085     <span class="keywordtype">int</span>         x, y, w, h;             00086 <span class="preprocessor">#endif</span>00087 <span class="preprocessor"></span><a name="l00088"></a><a class="code" href="struct__CONTAINERINFO.htm#o0">00088</a>     <a class="code" href="group__window__create__fns.htm#ga0">WNDPROC</a>     <a class="code" href="struct__CONTAINERINFO.htm#o0">user_proc</a>;              <a name="l00090"></a><a class="code" href="struct__CONTAINERINFO.htm#o1">00090</a>     <span class="keywordtype">int</span>         <a class="code" href="struct__CONTAINERINFO.htm#o1">controlnr</a>;              <a name="l00092"></a><a class="code" href="struct__CONTAINERINFO.htm#o2">00092</a>     <a class="code" href="struct__CTRLDATA.htm">PCTRLDATA</a>   <a class="code" href="struct__CONTAINERINFO.htm#o2">controls</a>;               <a name="l00094"></a><a class="code" href="struct__CONTAINERINFO.htm#o3">00094</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>       <a class="code" href="struct__CONTAINERINFO.htm#o3">dwAddData</a>;              00095 } <a class="code" href="struct__CONTAINERINFO.htm">CONTAINERINFO</a>;<a name="l00097"></a><a class="code" href="group__ctrl__scrollview.htm#ga2">00097</a> <span class="keyword">typedef</span> <a class="code" href="struct__CONTAINERINFO.htm">CONTAINERINFO</a>* <a class="code" href="struct__CONTAINERINFO.htm">PCONTAINERINFO</a>;00098 00104 MG_EXPORT <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="group__ctrl__scrollview.htm#ga12">mglist_get_item_adddata</a> (<a class="code" href="group__handles.htm#ga0">GHANDLE</a> hi);00105 00110 MG_EXPORT <a class="code" href="group__win32__types.htm#ga4">DWORD</a> <a class="code" href="group__ctrl__scrollview.htm#ga13">scrollview_get_item_adddata</a> (HSVITEM hsvi);00111 00116 MG_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__ctrl__scrollview.htm#ga14">scrollview_get_item_index</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi);00117 00122 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> <a class="code" href="group__ctrl__scrollview.htm#ga15">scrollview_is_item_hilight</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi);00123 00128 MG_EXPORT <a class="code" href="group__simple__types.htm#ga0">BOOL</a> <a class="code" href="group__ctrl__scrollview.htm#ga16">scrollview_is_item_selected</a> (HSVITEM hsvi);00129 00134 MG_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__ctrl__scrollview.htm#ga17">scrollview_set_item_height</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi, <span class="keywordtype">int</span> height);00135 <a name="l00145"></a><a class="code" href="group__ctrl__scrollview.htm#ga3">00145</a> <span class="keyword">typedef</span> int  (*<a class="code" href="group__ctrl__scrollview.htm#ga3">SVITEM_INITFUNC</a>)    (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi);00146 <a name="l00154"></a><a class="code" href="group__ctrl__scrollview.htm#ga4">00154</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__ctrl__scrollview.htm#ga4">SVITEM_DESTROYFUNC</a>) (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi);00155 <a name="l00165"></a><a class="code" href="group__ctrl__scrollview.htm#ga5">00165</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__ctrl__scrollview.htm#ga5">SVITEM_DRAWFUNC</a>) (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, HSVITEM hsvi, <a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="struct__RECT.htm">RECT</a> *rcDraw);00166 <a name="l00171"></a><a class="code" href="group__ctrl__scrollview.htm#ga6">00171</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__ctrl__scrollview.htm#ga6">SVITEM_CMP</a>) (HSVITEM hsvi1, HSVITEM hsvi2);00172 <a name="l00174"></a><a class="code" href="struct__svitem__operations.htm">00174</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__svitem__operations.htm">_svitem_operations</a>00175 {<a name="l00177"></a><a class="code" href="struct__svitem__operations.htm#o0">00177</a>     <a class="code" href="group__ctrl__scrollview.htm#ga3">SVITEM_INITFUNC</a>     <a class="code" href="struct__svitem__operations.htm#o0">initItem</a>;     <a name="l00179"></a><a class="code" href="struct__svitem__operations.htm#o1">00179</a>     <a class="code" href="group__ctrl__scrollview.htm#ga4">SVITEM_DESTROYFUNC</a>  <a class="code" href="struct__svitem__operations.htm#o1">destroyItem</a>;  <a name="l00181"></a><a class="code" href="struct__svitem__operations.htm#o2">00181</a>     <a class="code" href="group__ctrl__scrollview.htm#ga5">SVITEM_DRAWFUNC</a>     <a class="code" href="struct__svitem__operations.htm#o2">drawItem</a>;     00182 } <a class="code" href="struct__svitem__operations.htm">SVITEMOPS</a>;<a name="l00184"></a><a class="code" href="group__ctrl__scrollview.htm#ga8">00184</a> <span class="keyword">typedef</span> <a class="code" href="struct__svitem__operations.htm">SVITEMOPS</a>* <a class="code" href="struct__svitem__operations.htm">PSVITEMOPS</a>;00185 <a name="l00187"></a><a class="code" href="struct__SCROLLVIEWITEMINFO.htm">00187</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__SCROLLVIEWITEMINFO.htm">_SCROLLVIEWITEMINFO</a>00188 {<a name="l00190"></a><a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o0">00190</a>     <span class="keywordtype">int</span>        <a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o0">nItem</a>;           <a name="l00192"></a><a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o1">00192</a>     <span class="keywordtype">int</span>        <a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o1">nItemHeight</a>;     <a name="l00194"></a><a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o2">00194</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>      <a class="code" href="struct__SCROLLVIEWITEMINFO.htm#o2">addData</a>;         00195 } <a class="code" href="struct__SCROLLVIEWITEMINFO.htm">SVITEMINFO</a>;<a name="l00197"></a><a class="code" href="group__ctrl__scrollview.htm#ga10">00197</a> <span class="keyword">typedef</span> <a class="code" href="struct__SCROLLVIEWITEMINFO.htm">SVITEMINFO</a>* <a class="code" href="struct__SCROLLVIEWITEMINFO.htm">PSVITEMINFO</a>;00198 <a name="l00208"></a><a class="code" href="group__ctrl__scrollview__styles.htm#ga0">00208</a> <span class="preprocessor">#define SVS_UPNOTIFY            0x0001L</span>00209 <span class="preprocessor"></span>00210 <span class="preprocessor">#define SVS_NOTIFY              0x0002L</span>00211 <span class="preprocessor"></span><a name="l00216"></a><a class="code" href="group__ctrl__scrollview__styles.htm#ga2">00216</a> <span class="preprocessor">#define SVS_AUTOSORT            0x0004L</span>00217 <span class="preprocessor"></span><a name="l00222"></a><a class="code" href="group__ctrl__scrollview__styles.htm#ga3">00222</a> <span class="preprocessor">#define SVS_LOOP                0x0008L</span>00223 <span class="preprocessor"></span><a name="l00250"></a><a class="code" href="group__ctrl__scrollview__msgs.htm#ga0">00250</a> <span class="preprocessor">#define SVM_ADDITEM             0xF300</span>00251 <span class="preprocessor"></span><a name="l00271"></a><a class="code" href="group__ctrl__scrollview__msgs.htm#ga1">00271</a> <span class="preprocessor">#define SVM_DELITEM             0xF301</span>00272 <span class="preprocessor"></span><a name="l00292"></a><a class="code" href="group__ctrl__scrollview__msgs.htm#ga2">00292</a> <span class="preprocessor">#define SVM_SETITEMDRAW         0xF302</span>00293 <span class="preprocessor"></span><a name="l00312"></a><a class="code" href="group__ctrl__scrollview__msgs.htm#ga3">00312</a> <span class="preprocessor">#define SVM_ADDCTRLS            0xF303</span>00313 <span class="preprocessor"></span><a name="l00332"></a><a class="code" href="group__ctrl__scrollview__msgs.htm#ga4">00332</a> <span class="preprocessor">#define SVM_SETCONTWIDTH        0xF306</span>00333 <span class="preprocessor"></span>

⌨️ 快捷键说明

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