📄 group__ctrl__scrollview.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: ScrollView 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>ScrollView control<br><small>[<a class="el" href="group__controls.htm">Standard controls</a>]</small></h1><h2>Modules</h2><ul><li><a class="el" href="group__ctrl__scrollview__styles.htm">Styles of scrollview control</a><li><a class="el" href="group__ctrl__scrollview__msgs.htm">Messages of scrollview control</a><li><a class="el" href="group__ctrl__scrollview__ncs.htm">Notification codes of scrollview control</a></ul><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__CONTAINERINFO.htm">_CONTAINERINFO</a><li>struct <a class="el" href="struct__svitem__operations.htm">_svitem_operations</a><li>struct <a class="el" href="struct__SCROLLVIEWITEMINFO.htm">_SCROLLVIEWITEMINFO</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__scrollview.htm#ga18">CTRL_SCROLLVIEW</a> ("scrollview")<dl class="el"><dd class="mdescRight">The class name of scrollview control, uses this name to create a scrollable window that consists of items. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview.htm#ga19">CTRL_SCROLLWND</a> ("scrollwnd")<dl class="el"><dd class="mdescRight">The class name of scrollwnd control, uses this name to create a scrollable window to which you can add controls. <a href="#ga19"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="group__handles.htm#ga0">GHANDLE</a> <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a><li>typedef <a class="el" href="struct__CONTAINERINFO.htm">_CONTAINERINFO</a> <a class="el" href="group__ctrl__scrollview.htm#ga1">CONTAINERINFO</a><li>typedef <a class="el" href="struct__CONTAINERINFO.htm">CONTAINERINFO</a> * <a class="el" href="group__ctrl__scrollview.htm#ga2">PCONTAINERINFO</a><li>typedef int(* <a class="el" href="group__ctrl__scrollview.htm#ga3">SVITEM_INITFUNC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">Type of the scrollview item initialization callback procedure. <a href="#ga3"></a><br></dl><li>typedef void(* <a class="el" href="group__ctrl__scrollview.htm#ga4">SVITEM_DESTROYFUNC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">Type of the scrollview item destroy callback procedure. <a href="#ga4"></a><br></dl><li>typedef void(* <a class="el" href="group__ctrl__scrollview.htm#ga5">SVITEM_DRAWFUNC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__RECT.htm">RECT</a> *rcDraw)<dl class="el"><dd class="mdescRight">Type of the scrollview item drawing callback procedure. <a href="#ga5"></a><br></dl><li>typedef int(* <a class="el" href="group__ctrl__scrollview.htm#ga6">SVITEM_CMP</a> )(<a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi1, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi2)<dl class="el"><dd class="mdescRight">Type of the scrollview item compare function. <a href="#ga6"></a><br></dl><li>typedef <a class="el" href="struct__svitem__operations.htm">_svitem_operations</a> <a class="el" href="group__ctrl__scrollview.htm#ga7">SVITEMOPS</a><li>typedef <a class="el" href="struct__svitem__operations.htm">SVITEMOPS</a> * <a class="el" href="group__ctrl__scrollview.htm#ga8">PSVITEMOPS</a><li>typedef <a class="el" href="struct__SCROLLVIEWITEMINFO.htm">_SCROLLVIEWITEMINFO</a> <a class="el" href="group__ctrl__scrollview.htm#ga9">SVITEMINFO</a><li>typedef <a class="el" href="struct__SCROLLVIEWITEMINFO.htm">SVITEMINFO</a> * <a class="el" href="group__ctrl__scrollview.htm#ga10">PSVITEMINFO</a></ul><h2>Functions</h2><ul><li>MG_EXPORT int GUIAPI <a class="el" href="group__ctrl__scrollview.htm#ga11">DefaultContainerProc</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int message, <a class="el" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="el" href="group__win32__types.htm#ga9">LPARAM</a> lParam)<li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> <a class="el" href="group__ctrl__scrollview.htm#ga12">mglist_get_item_adddata</a> (<a class="el" href="group__handles.htm#ga0">GHANDLE</a> hi)<dl class="el"><dd class="mdescRight">Use this to get additional data from a list item in a control, such as scrollview and iconview. <a href="#ga12"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> <a class="el" href="group__ctrl__scrollview.htm#ga13">scrollview_get_item_adddata</a> (<a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">Use this to get additional data from scrollview item. <a href="#ga13"></a><br></dl><li>MG_EXPORT int <a class="el" href="group__ctrl__scrollview.htm#ga14">scrollview_get_item_index</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">To get item index. <a href="#ga14"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> <a class="el" href="group__ctrl__scrollview.htm#ga15">scrollview_is_item_hilight</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">To decide whether an item is the current hilighted item. <a href="#ga15"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> <a class="el" href="group__ctrl__scrollview.htm#ga16">scrollview_is_item_selected</a> (<a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi)<dl class="el"><dd class="mdescRight">To decide whether an item is a selected. <a href="#ga16"></a><br></dl><li>MG_EXPORT int <a class="el" href="group__ctrl__scrollview.htm#ga17">scrollview_set_item_height</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi, int height)<dl class="el"><dd class="mdescRight">Sets the height of an item. <a href="#ga17"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Scrollview control is a scrollable window, which has a visible area and normally a larger content area, user can browse content area using scrollbar. Contents of the content area is totally user-defined, you can add controls in it, add customed listed items, or anything you want.<p>In fact, you can build a control needing scrolled window support on scrollview. <hr><h2>Define Documentation</h2><a class="anchor" name="ga18" doxytag="scrollview.h::CTRL_SCROLLVIEW"></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_SCROLLVIEW ("scrollview") </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The class name of scrollview control, uses this name to create a scrollable window that consists of items. <p><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00059">59</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="scrollview.h::CTRL_SCROLLWND"></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_SCROLLWND ("scrollwnd") </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The class name of scrollwnd control, uses this name to create a scrollable window to which you can add controls. <p><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00067">67</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga1" doxytag="scrollview.h::CONTAINERINFO"></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">typedef struct <a class="el" href="struct__CONTAINERINFO.htm">_CONTAINERINFO</a> <a class="el" href="struct__CONTAINERINFO.htm">CONTAINERINFO</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure which defines a container. </td> </tr></table><a class="anchor" name="ga0" doxytag="scrollview.h::HSVITEM"></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">typedef <a class="el" href="group__handles.htm#ga0">GHANDLE</a> <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Scrollview item object, use this handle to access a scrollview item <p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00075">75</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="scrollview.h::PCONTAINERINFO"></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">typedef <a class="el" href="struct__CONTAINERINFO.htm">CONTAINERINFO</a>* <a class="el" href="struct__CONTAINERINFO.htm">PCONTAINERINFO</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Data type of pointer to a CONTAINERINFO <p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00097">97</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga10" doxytag="scrollview.h::PSVITEMINFO"></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">typedef <a class="el" href="struct__SCROLLVIEWITEMINFO.htm">SVITEMINFO</a>* <a class="el" href="struct__SCROLLVIEWITEMINFO.htm">PSVITEMINFO</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Data type of pointer to a SVITEMINFO <p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00197">197</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="scrollview.h::PSVITEMOPS"></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">typedef <a class="el" href="struct__svitem__operations.htm">SVITEMOPS</a>* <a class="el" href="struct__svitem__operations.htm">PSVITEMOPS</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Data type of pointer to a SVITEMOPS <p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00184">184</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga6" doxytag="scrollview.h::SVITEM_CMP"></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">typedef int(* <a class="el" href="group__ctrl__scrollview.htm#ga6">SVITEM_CMP</a>)(<a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi1, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi2) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of the scrollview item compare function. <p><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00171">171</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="scrollview.h::SVITEM_DESTROYFUNC"></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">typedef void(* <a class="el" href="group__ctrl__scrollview.htm#ga4">SVITEM_DESTROYFUNC</a>)(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of the scrollview item destroy callback procedure. <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>hWnd</em> </td><td>Handle of the scrollview control . </td></tr> <tr><td valign="top"></td><td valign="top"><em>hsvi</em> </td><td>Scrollview item handle. </td></tr> </table></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00154">154</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="scrollview.h::SVITEM_DRAWFUNC"></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">typedef void(* <a class="el" href="group__ctrl__scrollview.htm#ga5">SVITEM_DRAWFUNC</a>)(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__RECT.htm">RECT</a> *rcDraw) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of the scrollview item drawing callback procedure. <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>hWnd</em> </td><td>Handle of the scrollview control. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hsvi</em> </td><td>Scrollview item handle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hdc</em> </td><td>Drawing device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rcDraw</em> </td><td>Drawing rect area. </td></tr> </table></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00165">165</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="scrollview.h::SVITEM_INITFUNC"></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">typedef void(* <a class="el" href="group__ctrl__scrollview.htm#ga3">SVITEM_INITFUNC</a>)(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi) </td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -