Location:
Search - onTimer
Search list
Description: 时间函数的简单运用!
很有用的,可嵌入大的运用程序.
Platform: |
Size: 42395 |
Author: |
Hits:
Description: 这是完整的一个C/S的客户服务端程序!但是我希望加点功能!请大家帮帮忙,“我要做的是客户端和服务器正常运行的情况下,如果网络断了,(比如说我把网络弄掉了,然后再接好)过了一会网络恢复正常,客户端能自动连接到服务器端,不能人工干涉! 我查了一些资料,在VC里有一个函数OnTimer(nIDEvent)可以定时产生事件!可以实现这个功能,但是我用了,还是连不上,请大家帮帮忙吧!做好后给我发到我的邮箱里!谢谢!-This is a complete C/S programe,but I hope put more function into it.Please help me.Fllowing is I ll want to do.When client is communicating with server normally,the network link is down. After while the link recovery(ie,I take the cable out from the computer then plug it in.)The Client can reconnect the server automatically not redo by human.I study some reference information to do it.There is a function OnTimer(nIDEvent) in VC can send event message periodically.But I still can t reconnect.Please help me to do it and then mail to me. Thanks.
Platform: |
Size: 96684 |
Author: 海军 |
Hits:
Description: JavaScript倒计时代码:新建一个文本文件(后缀名是TXT),然后将下面的源代码全部复制/粘贴到这个文本文件中,保存后改变这个文本文件的后缀名为HTML,然后在IE浏览器中打开并运行。考虑到onTimer函数中执行语句的延迟,实际中你可以减少elapse的值,使得倒计数秒更为精确!欢迎大家指点!-countdown JavaScript code : a new text file (suffix were TXT), Below then all of the source code copy / paste text of this document, preserved change the text of the document known as HTML suffixes, and then the IE browser to open and run. OnTimer function to consider the implementation of the delayed statements, you can actually reduce the value elapse, make more precise countdown seconds! We welcome the guidance!
Platform: |
Size: 5021 |
Author: miracleboy |
Hits:
Description: 时间函数的简单运用! 很有用的,可嵌入大的运用程序.- Function of time simple utilization! Very useful, may insert
the big utilization procedure
Platform: |
Size: 41984 |
Author: 马权 |
Hits:
Description: 提供了MFC中的CTimer类的功能,但它不需要窗口的支持,使用时,只需继承CTimerSupport类。
计时器是持续运行的,如果不被KillTimer()函数停止;会持续调用OnTimer()函数。-the MFC CTimer the functional category, but it does not need the support of the window, use, only inherit CTimerSupport category. Timer is a continuous operation, if not KillTimer () function ceased; will continue to call OnTimer () function.
Platform: |
Size: 1024 |
Author: 张海玉 |
Hits:
Description: 单击鼠标左键调用this->SetTimer(1500,NULL),时间间隔是0.5秒,每隔0.5秒就会发送WM_TIMER消息,调用函数ONTIMER,使M_INDEX增加,通过INVALIDATE函数触发对屏幕的刷新.-click the left mouse button call this-
Platform: |
Size: 1946624 |
Author: 张宁 |
Hits:
Description: 闹钟提醒程序,主要用OnTimer进行控制.-Alarm clock to remind the procedure, the main control OnTimer.
Platform: |
Size: 62464 |
Author: 牛文江 |
Hits:
Description: 滚动字幕,用OnTimer定时器来定时在窗口上显示滚动的字幕-Rolling subtitles using OnTimer timer to regularly displayed in the window rolling subtitles
Platform: |
Size: 27648 |
Author: Dong |
Hits:
Description: 本程序是关于ontimer()时间函数在VC++中的应用,运行结果可以动态显示文本,实现动画功能,是学习VC++延时的好代码,希望大家从中得到更多的收获,代码可以运行。-This procedure is about ontimer () function of time in VC++ Application, operation results can be dynamic display text, realize animated features, is to learn from VC++ Delay a good code, I hope everyone can get more benefits, code can run.
Platform: |
Size: 1960960 |
Author: 刘辅 |
Hits:
Description: 一个简单功能的对话框制作的秒表,主要应用MFC的ontimer计时器函数-A simple function of the dialog box produced by a stopwatch, the main applications of the MFC timer function ontimer
Platform: |
Size: 1926144 |
Author: 姜明威 |
Hits:
Description: 非原创
模拟led闪烁控件
用picture控件实现。双缓冲,很不错。
源码是个小例子
以下是给新手的提示:
使用的时候仅需要led.h和led.cpp
最简单的led闪烁:画个picture控件,控件定义个CLED 的控制变量
在对话框初始oninitdialog里设定led初始状态(setled),然后用timer定时,在ontimer里用ping这个函数点亮就可以了。-Non-original analog led blinking picture controls used to achieve control. Double buffering, is pretty good. Source is a small example of the following tips to the novice: the use of the time led.h and requires only the simplest led.cpp blinking led: draw a picture control, control the definition of a CLED control variables in the initial dialog box located in OnInitDialog set led the initial state (setled), and then use the timer timing, ontimer spent in this function ping lit it.
Platform: |
Size: 32768 |
Author: ultraqiangda |
Hits:
Description: 这项计划要求( WM_TIMER ) ,是专为时间维持。
在这个项目中我用三( 3 )功能( SetTimer , OnTimer , KillTimer ) ,这些功能都支持该计划的选择-This program called (WM_TIMER) ,is designed for time keeping.
In this program I used three (3) functions (SetTimer,OnTimer,KillTimer),these function support the program with option
Platform: |
Size: 1957888 |
Author: 张涛 |
Hits:
Description: 关于定时器的使用,自己写的代码 绝对不会跟人家的重复-With regard to the use of timers that they will not write the code duplication with others ~ ~ ~
Platform: |
Size: 26624 |
Author: 王 |
Hits:
Description: 本实例中将利用 SetTimer、OnTimer 和 KillTimer 这三个函数实现可调节计时器程序。
本实例编写的计时器有倒计时和正常计时两种计时方式,还可以水平滑块调节计时的快
慢。-UINT SetTimer( UINT nIDEvent, UINT nElapse,
void (CALLBACK EXPORT* lpfnTimer)( HWND, UINT, UINT, DWORD) )
Platform: |
Size: 56320 |
Author: 何治强 |
Hits:
Description: Version 2.0.0 of SimpleTimer is incompatible with older versions, which
means you will have to adjust your previous projects that use SimpleTimer.
1) The Start and Stop methods have been replaced with the Enabled and Interval
properties, to make SimpleTimer more interchangeable with TTimer.
To start the timer you will need to first set the Interval, then set Enabled
to True (just like TTimer). Also, you must specify an OnTimer event method
(see below).
2) The callback method you used for receiving notifications from a SimpleTimer
object has been replaced by an OnTimer event. This both makes SimpleTimer
easier to use and makes it look more like TTimer.
Platform: |
Size: 11264 |
Author: saaksid |
Hits:
Description: 原创的电子提醒功能小工具.2个小闹钟计时器.用到 热键功能函数,OnTimer,多线程,和文件读写等等的知识-Original function of an electronic gadget to remind .2 a small alarm clock timer. Use hotkey function, OnTimer, multi-threaded, and document the knowledge to read and write, etc.
Platform: |
Size: 28672 |
Author: 陈锐 |
Hits:
Description: WM_timer消息的运用,演示四种情况下,settimer与ontimer的应用-WM_timer the use of information, presentation of four cases, settimer with the application of ontimer
Platform: |
Size: 20480 |
Author: 郑 |
Hits:
Description: 1. 首先建立一个基本对话的exe工程,并命名为time;
2. 在BOOL CTimeDlg::OnInitDialog()函数内建立一个计时器,SetTimer(1,1000,NULL)
3. 再用classwizard建立消息响应函数void CTimeDlg::OnTimer(UINT nIDEvent),在里面输入代码如下:Invalidate()
4. 再用classwizard建立消息响应函数void CTimeDlg::OnDestroy(),在里面输入代码如下:KillTimer(1) 以此来消除计时器;
5. 在void CTimeDlg::OnPaint()里输入上面的算法;
6. 为CtimeDlg类添加头文件math.h,代码:#include "math.h"。
7. 编译、链接、运行。
-1. First, the establishment of a basic dialogue exe project, and named the time 2. In the BOOL CTimeDlg:: OnInitDialog () function is the establishment of a timer, SetTimer (1,1000, NULL) 3. Then the establishment of the message to respond to classwizard function void CTimeDlg:: OnTimer (UINT nIDEvent), enter the code inside is as follows: Invalidate () 4. then classwizard set-up message response function void CTimeDlg:: OnDestroy (), enter the code inside the following: KillTimer (1) to this to eliminate the timer 5. void CTimeDlg:: OnPaint () where importation of the above algorithm 6. CtimeDlg class to add header file for the math.h, the code:# include " math.h" . 7. Compile, link and run.
Platform: |
Size: 1911808 |
Author: tmacq3 |
Hits:
Description: 该源码用vc用ontimer实现了一个计时的实例,希望对朋友们有帮助-The source code is available ontimer achieved with the vc a time instance, want to help my friends
Platform: |
Size: 1924096 |
Author: lgx |
Hits:
Description: 一个简单的VC制作的指针式时钟,本程序主要是编辑void CWulihuaView::OnDraw(CDC* pDC)(此函数用于绘制时钟的边框和指针以及十二个时间点)和另外两个函数:int CWulihuaView::OnCreate (LPCREATESTRUCT lpCreateStruct)和 void CWulihuaView::OnTimer (UINT nIDEvent),后两个函数主要是用于窗口和时间刷新,代码编辑之后运行结果是一个时钟。-VC make a clock ,example
Platform: |
Size: 1949696 |
Author: mcroal |
Hits: