📄 group__ctrl__scrollview__msgs.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: Messages of 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>Messages of scrollview control<br><small>[<a class="el" href="group__ctrl__scrollview.htm">ScrollView control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga0">SVM_ADDITEM</a> 0xF300<dl class="el"><dd class="mdescRight">Adds an item in the scrollview. <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga1">SVM_DELITEM</a> 0xF301<dl class="el"><dd class="mdescRight">Deletes an item from the scrollview. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga2">SVM_SETITEMDRAW</a> 0xF302<dl class="el"><dd class="mdescRight">Sets the drawing operation of an item. <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga3">SVM_ADDCTRLS</a> 0xF303<dl class="el"><dd class="mdescRight">Adds controls to the scrollview. <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga4">SVM_SETCONTWIDTH</a> 0xF306<dl class="el"><dd class="mdescRight">Sets the scrollview content area (scrollable area) width. <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga5">SVM_SETCONTHEIGHT</a> 0xF307<dl class="el"><dd class="mdescRight">Sets the scrollview content area (scrollable area) height. <a href="#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga6">SVM_GETCTRL</a> 0xF308<dl class="el"><dd class="mdescRight">Gets the control handle in the scrollview window by control id. <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga7">SVM_RESETCONTENT</a> 0xF309<dl class="el"><dd class="mdescRight">Clears all the controls and the items added to the scrollview window. <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga8">SVM_SETITEMOPS</a> 0xF30a<dl class="el"><dd class="mdescRight">Sets the item operations of the items in the scrollview. <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga9">SVM_GETMARGINS</a> 0xF30b<dl class="el"><dd class="mdescRight">Gets the margin values of the scrollview. <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga10">SVM_SETMARGINS</a> 0xF311<dl class="el"><dd class="mdescRight">Sets the margin values of the scrollview. <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga11">SVM_GETLEFTMARGIN</a> 0xF312<dl class="el"><dd class="mdescRight">Gets the left margin value of the scrollview. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga12">SVM_GETTOPMARGIN</a> 0xF313<dl class="el"><dd class="mdescRight">Gets the top margin value of the scrollview. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga13">SVM_GETRIGHTMARGIN</a> 0xF314<dl class="el"><dd class="mdescRight">Gets the right margin value of the scrollview. <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga14">SVM_GETBOTTOMMARGIN</a> 0xF315<dl class="el"><dd class="mdescRight">Gets the bottom margin value of the scrollview. <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga15">SVM_GETVISIBLEWIDTH</a> 0xF316<dl class="el"><dd class="mdescRight">Gets the width of the visible content area. <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga16">SVM_GETVISIBLEHEIGHT</a> 0xF317<dl class="el"><dd class="mdescRight">Gets the height of the visible content area. <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga17">SVM_GETCONTWIDTH</a> 0xF318<dl class="el"><dd class="mdescRight">Gets the width of the content area. <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga18">SVM_GETCONTHEIGHT</a> 0xF319<dl class="el"><dd class="mdescRight">Gets the height of the content area. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga19">SVM_SETCONTRANGE</a> 0xF31a<dl class="el"><dd class="mdescRight">Sets the width and height of the content area. <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga20">SVM_GETCONTENTX</a> 0xF31b<dl class="el"><dd class="mdescRight">Gets the content x offset in the viewport. <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga21">SVM_GETCONTENTY</a> 0xF31c<dl class="el"><dd class="mdescRight">Gets the content y offset in the viewport. <a href="#ga21"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga22">SVM_SETCONTPOS</a> 0xF31d<dl class="el"><dd class="mdescRight">Sets the content offset position in the viewport. <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga23">SVM_GETCURSEL</a> 0xF31e<dl class="el"><dd class="mdescRight">Gets the index of the current hilighted scrollview item. <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga24">SVM_SELECTITEM</a> 0xF31f<dl class="el"><dd class="mdescRight">Selects or unselects an item in the scrollview item. <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga25">SVM_SHOWITEM</a> 0xF320<dl class="el"><dd class="mdescRight">Makes an item visible in the scrollview item. <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga26">SVM_CHOOSEITEM</a> 0xF321<dl class="el"><dd class="mdescRight">Makes an item selected and visible in the scrollview item. <a href="#ga26"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga27">SVM_SETCURSEL</a> 0xF322<dl class="el"><dd class="mdescRight">Makes an item as the current hilighted item in the scrollview item. <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga28">SVM_SETITEMINIT</a> 0xF323<dl class="el"><dd class="mdescRight">Sets the init operation of the items in the scrollview. <a href="#ga28"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga29">SVM_SETITEMDESTROY</a> 0xF324<dl class="el"><dd class="mdescRight">Sets the destroy operation of the items in the scrollview. <a href="#ga29"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga30">SVM_SETITEMCMP</a> 0xF327<dl class="el"><dd class="mdescRight">Sets the item compare function. <a href="#ga30"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga31">SVM_MAKEPOSVISIBLE</a> 0xF328<dl class="el"><dd class="mdescRight">Makes a position in the content area visible. <a href="#ga31"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga32">SVM_SETCONTAINERPROC</a> 0xF329<dl class="el"><dd class="mdescRight">Sets the window procedure of the container window in the scrollview. <a href="#ga32"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga33">SVM_GETFOCUSCHILD</a> 0xF32a<dl class="el"><dd class="mdescRight">Gets the focus control in the scrollview. <a href="#ga33"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga34">SVM_GETHSCROLLVAL</a> 0xF32b<dl class="el"><dd class="mdescRight">Gets the horizontal scroll value. <a href="#ga34"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga35">SVM_GETVSCROLLVAL</a> 0xF32c<dl class="el"><dd class="mdescRight">Gets the vertical scroll value. <a href="#ga35"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga36">SVM_GETHSCROLLPAGEVAL</a> 0xF32d<dl class="el"><dd class="mdescRight">Gets the horizontal page scroll value. <a href="#ga36"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga37">SVM_GETVSCROLLPAGEVAL</a> 0xF32e<dl class="el"><dd class="mdescRight">Gets the vertical page scroll value. <a href="#ga37"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga38">SVM_SETSCROLLVAL</a> 0xF32f<dl class="el"><dd class="mdescRight">Sets the horizontal and vertical scroll value. <a href="#ga38"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga39">SVM_SETSCROLLPAGEVAL</a> 0xF330<dl class="el"><dd class="mdescRight">Sets the horizontal and vertical page value. <a href="#ga39"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga40">SVM_SORTITEMS</a> 0xF331<dl class="el"><dd class="mdescRight">Sorts the items according to a specified comparision function. <a href="#ga40"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga41">SVM_GETITEMCOUNT</a> 0xF332<dl class="el"><dd class="mdescRight">Gets the total number of the items. <a href="#ga41"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga42">SVM_GETITEMADDDATA</a> 0xF333<dl class="el"><dd class="mdescRight">Gets the additional data of the item. <a href="#ga42"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga43">SVM_SETITEMADDDATA</a> 0xF334<dl class="el"><dd class="mdescRight">Sets the additional data of the item. <a href="#ga43"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga44">SVM_REFRESHITEM</a> 0xF335<dl class="el"><dd class="mdescRight">Refresh the item. <a href="#ga44"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga45">SVM_SETITEMHEIGHT</a> 0xF336<dl class="el"><dd class="mdescRight">Sets the height of an item. <a href="#ga45"></a><br></dl><li>#define <a class="el" href="group__ctrl__scrollview__msgs.htm#ga46">SVM_GETFIRSTVISIBLEITEM</a> 0xF337<dl class="el"><dd class="mdescRight">Gets the index of the first visible item. <a href="#ga46"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga3" doxytag="scrollview.h::SVM_ADDCTRLS"></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 SVM_ADDCTRLS 0xF303 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adds controls to the scrollview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga3">SVM_ADDCTRLS</a> <span class="keywordtype">int</span> itemNr; <a class="code" href="struct__CTRLDATA.htm">PCTRLDATA</a> pctrls; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)itemNr; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)pctrls;</pre></div><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>ctrlNr</em> </td><td>Control number in the pctrls control array. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pctrls</em> </td><td>Points to a CTRLDATA array that defines controls.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Zero on success; otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00312">312</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga0" doxytag="scrollview.h::SVM_ADDITEM"></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 SVM_ADDITEM 0xF300 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adds an item in the scrollview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga0">SVM_ADDITEM</a> <a class="code" href="struct__SCROLLVIEWITEMINFO.htm">SVITEMINFO</a> svii; <a class="code" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> *phsvi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)phsvi; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)&svii;</pre></div><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>&svii</em> </td><td>Pointer to a scrollview item information structure. </td></tr> <tr><td valign="top"></td><td valign="top"><em>phsvi</em> </td><td>Pointer to a HSVITEM var, used to store the item handle returned.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Index of the scrollview item on success; otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00250">250</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga26" doxytag="scrollview.h::SVM_CHOOSEITEM"></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 SVM_CHOOSEITEM 0xF321 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Makes an item selected and visible in the scrollview item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga26">SVM_CHOOSEITEM</a> <span class="keywordtype">int</span> nItem; <a class="code" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)nItem; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)hsvi;</pre></div><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>nItem</em> </td><td>Item index. Be useful when hsvi is zero. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hsvi</em> </td><td>Item handle.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00716">716</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="scrollview.h::SVM_DELITEM"></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 SVM_DELITEM 0xF301 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Deletes an item from the scrollview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga1">SVM_DELITEM</a> <span class="keywordtype">int</span> nItem; <a class="code" href="group__ctrl__scrollview.htm#ga0">HSVITEM</a> hsvi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)nItem; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)hsvi;</pre></div><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>nItem</em> </td><td>Scrollview item index to delete. If hsvi is not zero, nItem will be ignored. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hsvi</em> </td><td>Scrollview item handle to delete.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Zero on success; otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00271">271</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga14" doxytag="scrollview.h::SVM_GETBOTTOMMARGIN"></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 SVM_GETBOTTOMMARGIN 0xF315 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the bottom margin value of the scrollview. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga14">SVM_GETBOTTOMMARGIN</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Bottom margin value on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00506">506</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga20" doxytag="scrollview.h::SVM_GETCONTENTX"></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 SVM_GETCONTENTX 0xF31b </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the content x offset in the viewport. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga20">SVM_GETCONTENTX</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Content x coordinate in the viewport on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="scrollview_8h-source.htm#l00603">603</a> of file <a class="el" href="scrollview_8h-source.htm">scrollview.h</a>. </td> </tr></table><a class="anchor" name="ga21" doxytag="scrollview.h::SVM_GETCONTENTY"></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 SVM_GETCONTENTY 0xF31c </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the content y offset in the viewport. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__scrollview__msgs.htm#ga21">SVM_GETCONTENTY</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Content y coordinate in the viewport on success, otherwise -1. </dd></dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -