Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>handleevent()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HandleEvent()
Process a Windows event with the event array
------------------------------------------------------------------------------

Syntax
HandleEvent( <nEvent> )   -->   NIL

Arguments
<nEvent> is the Windows event that just occurred.  This should
have been returned from either ChkEvent() or Event().

Returns
NIL.

Description
This function accepts a Clip-4-Win event and sends that event
to all event handlers for the window to which it applies.  It
accomplishes this by scanning the central processing array,
which has been built by the AddHandler() function.

Note that whenever an EVENT_DESTROY is detected, HandleEvent()
will automatically delete all event handlers associated with
the window being destroyed (to save you the trouble of doing so).

Example
// example main event loop
do while .t.
     do while ( nEvent := ChkEvent() )  == EVENT_NONE
     enddo
     HandleEvent( nEvent )
enddo


See Also: AddHandler() DelHandler()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson