Easy Win 32
Timer Class – cEasyTimer
cEasyTimer Functions:
Functions to modify and/or setup the Timer:
int ChangeTimerInterval(int Newms)
int ChangeTimerParent(HWND hWndP)
int ChangeTimerId(int Newid)
int ChangeTimerProc(TIMERPROC NewProc)
As a general rule
this functions return 1 on success, 0 on error.
Other Functions:
void InitTimer()
Initializes the
Timer Class with this values:
ms=0;
_timercreated_=FALSE;
hWndParent=NULL;
id=0;
_timerproc_=NULL;
_timerenabled_=FALSE;
int Create_Timer()
On success it return non-zero. On error it
returns zero.
int Destroy_Timer()
Destroys the
Timer. On error returns 0, else non-zero.
int GetInterval()
HWND
GetParent()
int GetId()
TIMERPROC
GetProc()
This functions return a Timer
Property according to the name of the function.
BOOL Is_Enabled()
If the Timer is
Enabled, returns TRUE, else FALSE.
void Disable_Timer()
void Enable_Timer()
Disable or Enable the Timer.
cEasyTimer Private Members:
Variables
for the Timer:
int
ms;
TIMERPROC _timerproc_;
int id;
HWND hWndParent;
BOOL _timercreated_;
BOOL _timerenabled_;