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

📄 stopping.html

📁 定时器 的源代码 比较简单 简易使用MFC中的定时器
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"       content="text/html;       charset=iso-8859-1">
<meta name="GENERATOR" content="/www/htdocs/earthwalkdesigns//earcgi/EWDHtml.cgi">
<!--                                                       -->
<!--      *******************************************      -->
<!--      *                                         *      -->
<!--      * EarthWalk Designs Programming Services. *      -->
<!--      *        WWW.EarthWalkDesigns.Com         *      -->
<!--      *                                         *      -->
<!--      *  Jay Wheeler (Jay@EarthWalkDesigns.com) *      -->
<!--      *              December 1997              *      -->
<!--      *                                         *      -->
<!--      *******************************************      -->
<!--                                                       -->
<!-- This page was designed by Jay Wheeler. -->
<title>MFC Timers - A Tutorial</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#990033" vlink="#333399" alink="#ff0000">
<font size=" 3 " face=" Century Schoolbook ">
<center>
<a href="http://www.earthwalkdesigns.com"><img src="EarthWalk.gif" border="0" align="center" ></a>
<br>
<font size="+2">
<b>MFC Timers - A Tutorial
</b></font>
<br>
<img src="Colorbar.gif" border="0" align="center" ><br>
</center>
<b><u>Stopping the Timer</u></b>
<p>
To stop the timer, issue the <i><b>KillTimer</b></i> command:
<p>
<ul>
        <i>t-result</i><b> = KillTimer (</b><i>t-number</i><b>);</b>
</ul>
<p>
<b><i>where:</i></b>
<p>
<ul>
  <table>
    <tr>
      <td><i>t-number</i>
      <td>The system timer number from either the SetTimer or OnTimer methods.
    <tr>
      <td><i>t-result</i>
      <td>The boolean result of the operation, TRUE indicating success.
  </table>
</ul>
<p>
<b>For Example:</b>
<p>
<ul>
  <pre>
      BOOL StopTimer (UINT TimerVal)
      {

          //
          //    Stop the timer
          //
          if (!KillTimer (TimerVal))
          {
              return FALSE;
          }

          //
          //    Place clean-up code following this point.
          //


          return TRUE;

      } // end StopTimer

  </pre>
</ul>

<p>
<center>
<img src="Colorbar.gif" border="0" align="center" ><br>
</center>
<font size="-1">
Copyright (c) 1997,1998. EarthWalk Designs.
<br>
Direct all inquiries to:<a href="mailto:jay@earthwalkdesigns.com">Jay Wheeler</a>
at EarthWalkDesigns.com
</font>
</p><br></font></body>
</html>

⌨️ 快捷键说明

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