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

📄 group__timer__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: Timer 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>Timer operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__timer__fns.htm#ga7">SetTimer</a>(hwnd, id, speed)&nbsp;&nbsp;&nbsp;SetTimerEx(hwnd, id, speed, NULL)<dl class="el"><dd class="mdescRight">The backward compatibility version of SetTimerEx.  <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__timer__fns.htm#ga8">ResetTimer</a>(hwnd, id, speed)&nbsp;&nbsp;&nbsp;ResetTimerEx(hwnd, id, speed, (<a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a>)0xFFFFFFFF)<dl class="el"><dd class="mdescRight">The backward compatibility version of ResetTimerEx.  <a href="#ga8"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="group__simple__types.htm#ga0">BOOL</a>(* <a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a> )(<a class="el" href="group__handles.htm#ga1">HWND</a>, int, <a class="el" href="group__win32__types.htm#ga4">DWORD</a>)<dl class="el"><dd class="mdescRight">Type of the timer callback procedure.  <a href="#ga0"></a><br></dl></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__timer__fns.htm#ga1">SetTimerEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int id, unsigned int speed, <a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a> timer_proc)<dl class="el"><dd class="mdescRight">Creates a timer with the specified timeout value.  <a href="#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__timer__fns.htm#ga2">KillTimer</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int id)<dl class="el"><dd class="mdescRight">Destroys a timer.  <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__timer__fns.htm#ga3">ResetTimerEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int id, unsigned int speed, <a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a> timer_proc)<dl class="el"><dd class="mdescRight">Adjusts a timer with a different timeout value or different timer callback procedure.  <a href="#ga3"></a><br></dl><li>MG_EXPORT unsigned int GUIAPI <a class="el" href="group__timer__fns.htm#ga4">GetTickCount</a> (void)<dl class="el"><dd class="mdescRight">Retrieves the tick counts that have elapsed since MiniGUI was started.  <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__timer__fns.htm#ga5">IsTimerInstalled</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int id)<dl class="el"><dd class="mdescRight">Determines whether a timer is installed.  <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__timer__fns.htm#ga6">HaveFreeTimer</a> (void)<dl class="el"><dd class="mdescRight">Determines whether there is any free timer slot in the system.  <a href="#ga6"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga8" doxytag="window.h::ResetTimer"></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 ResetTimer          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hwnd,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>id,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>speed&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;ResetTimerEx(hwnd, id, speed, (<a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a>)0xFFFFFFFF)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The backward compatibility version of ResetTimerEx. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__timer__fns.htm#ga3">ResetTimerEx</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l05397">5397</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="window.h::SetTimer"></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 SetTimer          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hwnd,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>id,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>speed&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetTimerEx(hwnd, id, speed, NULL)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The backward compatibility version of SetTimerEx. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__timer__fns.htm#ga1">SetTimerEx</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l05350">5350</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="window.h::TIMERPROC"></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__simple__types.htm#ga0">BOOL</a>(* <a class="el" href="group__timer__fns.htm#ga0">TIMERPROC</a>)(<a class="el" href="group__handles.htm#ga1">HWND</a>, int, <a class="el" href="group__win32__types.htm#ga4">DWORD</a>)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Type of the timer callback procedure. <p>This is the prototype of the callback procedure of a timer created by SetTimerEx. MiniGUI will call the timer procedure instead of sending MSG_TIMER message.<p>If the return value of a timer procedure is FALSE, the timer will be killed by MiniGUI automatically. This can be used to implement a one-shot timer.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__timer__fns.htm#ga1">SetTimerEx</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l05306">5306</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga4" doxytag="window.h::GetTickCount"></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">unsigned int GUIAPI GetTickCount           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieves the tick counts that have elapsed since MiniGUI was started. <p>This function retrieves the tick counts that have elapsed since MiniGUI was started. It is limited to the resolution of the system timer, i.e. for a general Linux box, the returned tick count value is in unit of 10ms.<p><dl compact><dt><b>Returns:</b></dt><dd>The tick counts value that have elapsed since MiniGUI was started. </dd></dl>    </td>  </tr></table><a class="anchor" name="ga6" doxytag="window.h::HaveFreeTimer"></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 HaveFreeTimer           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Determines whether there is any free timer slot in the system. <p>This function determines whether there is any free timer slot in the system.<p><dl compact><dt><b>Returns:</b></dt><dd>TRUE for yes, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__timer__fns.htm#ga5">IsTimerInstalled</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga5" doxytag="window.h::IsTimerInstalled"></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 IsTimerInstalled           </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>id</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>

⌨️ 快捷键说明

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