![]() |
Humble Framework for SkyOS |
#include <HTimer.h>
Inheritance diagram for HTimer:

Public Member Functions | |
| HTimer (int32 nTimeOut=0) | |
| ErrCode | Reached (void) |
| Should be called when the timer is reached. | |
| ErrCode | Restart (void) |
| Restarts the timer. | |
| ErrCode | Start (HANDLE hWnd=NULL, int32 nTimeOut=0) |
| Starts (creates) the timer. | |
| ErrCode | Stop (void) |
| Destroys the timer. | |
| uint32 | GetID (void) const |
| Returns the timer ID. | |
| HANDLE | GetTarget (void) const |
| Returns the target window handle. | |
| int32 | GetTimeOut (void) const |
| Returns the current time out value. | |
| ErrCode | SetTarget (HANDLE hWnd) |
| Sets the target window handle. | |
| ErrCode | SetTimeOut (int32 nTimeOut) |
| Sets the current time out value. | |
| bool | IsActive (void) const |
| Determines if the timer is active, i.e., ticking. | |
Protected Attributes | |
| uint32 | m_tid |
| timer identififier | |
| int32 | m_nTimeOut |
| timer duration (in seconds) | |
| HANDLE | m_hwndTarget |
| target window | |
|
|
The caller should invoke this method in response to a MSG_TIMER_REACHED message so that the timer knows that it has expired. Calling this method for a timer that hasn't been started (or has already been stopped) has no effect.
|
|
|
This method restarts the timer with the current time out value and target. If the timer is already active, it will be stopped and started; it the target has not been started (or has already been reached) then this is the same as starting it.
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006.01.09-16:37