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

📄 group__scrollbar__fns.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: Scroll bar operations</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><h1>Scroll bar operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__SCROLLINFO.htm">_SCROLLINFO</a></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__SCROLLINFO.htm">_SCROLLINFO</a> <a class="el" href="group__scrollbar__fns.htm#ga0">SCROLLINFO</a><li>typedef <a class="el" href="struct__SCROLLINFO.htm">_SCROLLINFO</a> * <a class="el" href="group__scrollbar__fns.htm#ga1">PSCROLLINFO</a></ul><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga2">EnableScrollBar</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> bEnable)<dl class="el"><dd class="mdescRight">Enables or disables one scroll bar arrows.  <a href="#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga3">GetScrollPos</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, int *pPos)<dl class="el"><dd class="mdescRight">Retrieves the current position of the scroll box (thumb) in the specified scroll bar.  <a href="#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga4">GetScrollRange</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, int *pMinPos, int *pMaxPos)<dl class="el"><dd class="mdescRight">Retrives the minimum and maximum position values for the specified scroll bar.  <a href="#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga5">SetScrollPos</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, int iNewPos)<dl class="el"><dd class="mdescRight">Sets the position of the scroll box (thumb) of the specified scroll bar.  <a href="#ga5"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga6">SetScrollRange</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, int iMinPos, int iMaxPos)<dl class="el"><dd class="mdescRight">Sets the minimum and maximum position values for the specified scroll bar.  <a href="#ga6"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga7">ShowScrollBar</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> bShow)<dl class="el"><dd class="mdescRight">Shows or hides the specified scroll bar.  <a href="#ga7"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga8">SetScrollInfo</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, const <a class="el" href="struct__SCROLLINFO.htm">SCROLLINFO</a> *lpsi, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> fRedraw)<dl class="el"><dd class="mdescRight">Sets the parameters of a scroll bar.  <a href="#ga8"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__scrollbar__fns.htm#ga9">GetScrollInfo</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iSBar, <a class="el" href="struct__SCROLLINFO.htm">PSCROLLINFO</a> lpsi)<dl class="el"><dd class="mdescRight">Retrieves the parameters of a scroll bar.  <a href="#ga9"></a><br></dl></ul><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga1" doxytag="window.h::PSCROLLINFO"></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__SCROLLINFO.htm">_SCROLLINFO</a> * <a class="el" href="struct__SCROLLINFO.htm">PSCROLLINFO</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Scroll bar information structure.     </td>  </tr></table><a class="anchor" name="ga0" doxytag="window.h::SCROLLINFO"></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__SCROLLINFO.htm">_SCROLLINFO</a>  <a class="el" href="struct__SCROLLINFO.htm">SCROLLINFO</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Scroll bar information structure.     </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="window.h::EnableScrollBar"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI EnableScrollBar           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>iSBar</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a>&nbsp;</td>          <td class="mdname" nowrap> <em>bEnable</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Enables or disables one scroll bar arrows. <p>This function enables or disables one scroll bar arrows.<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>&nbsp;</td><td>The handle to the window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iSBar</em>&nbsp;</td><td>Indicates to enable or disable which scroll bar, can be one of the following values:<ul><li>SB_HORZ<br> The horizontal scroll bar.</li><li>SB_VERT<br> The vertical scroll bar. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>bEnable</em>&nbsp;</td><td>Indicates whether to enable or disable the scroll bar. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__scrollbar__fns.htm#ga7">ShowScrollBar</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga9" doxytag="window.h::GetScrollInfo"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI GetScrollInfo           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>iSBar</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="struct__SCROLLINFO.htm">PSCROLLINFO</a>&nbsp;</td>          <td class="mdname" nowrap> <em>lpsi</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieves the parameters of a scroll bar. <p>This function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).<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>&nbsp;</td><td>The handle to the window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iSBar</em>&nbsp;</td><td>Indicates to enable or disable which scroll bar, can be one of the following values:<ul><li>SB_HORZ<br> The horizontal scroll bar.</li><li>SB_VERT<br> The vertical scroll bar. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>lpsi</em>&nbsp;</td><td>The pointer to a structure of SCROLLINFO which receives the parameters.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__scrollbar__fns.htm#ga8">SetScrollInfo</a>, <a class="el" href="group__scrollbar__fns.htm#ga0">SCROLLINFO</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga3" doxytag="window.h::GetScrollPos"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI GetScrollPos           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>iSBar</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>pPos</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieves the current position of the scroll box (thumb) in the specified scroll bar. <p>This function retrieves the current position of the scroll box (thumb) in the specified scroll bar. The current position is a relative value that depends on the current scrolling range.<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>&nbsp;</td><td>The handle to the window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iSBar</em>&nbsp;</td><td>Indicates to enable or disable which scroll bar, can be one of the following values:<ul><li>SB_HORZ<br> The horizontal scroll bar.</li><li>SB_VERT<br> The vertical scroll bar. </li></ul></td></tr>    <tr><td valign="top"></td><td valign="top"><em>pPos</em>&nbsp;</td><td>The pointer to a integer which receives the position value. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__scrollbar__fns.htm#ga5">SetScrollPos</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga4" doxytag="window.h::GetScrollRange"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI GetScrollRange           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>iSBar</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>pMinPos</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int *&nbsp;</td>          <td class="mdname" nowrap> <em>pMaxPos</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>

⌨️ 快捷键说明

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