nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Timer API.
From: Greg Haerr
Date: Wed, 2 Feb 2000 10:08:37 -0700

: I need to have some timers in my application. 
: 
: What is the API ?
: 
: Does anyone have an example ?

The timer API is SetTimer() and KillTimer(), which sends
a WM_TIMER message to your window procedure.  I would
prefer to add this, since it's a little tricky.  I've been meaning to 
add it for some time.  

Basically, we will use the select() timeout value in order to delay for
a next-timeout minimum value, then, if a timer is expiring, send a WM_TIMER
message and remove it from the queue.

I can probably get this in quickly, but you're welcome to take
a hack at it.

Regards,

Greg


nanogui@linuxhacker.org