Event library EvntFind() EvntRemove()
Programming guideline of WinDom

EvntExec()

NAME

EvntExec - Execute all functions binded to an event.

PROTOTYPAGE

int EvntExec( WINDOW *win, int ev);

PARAMETRES

win:
targeted window or NULL,

ev:
event to exec,

return:
TRUE if the event function is found and correctly executed.

DESCRIPTION

EvntExec() finds all event functions binded to the message ev and executes them if found. Note WM_REDRAW cannot be executed by EvntExec(), we have to used EvntRedraw for that.

There is an important difference between ApplWrite() and EvntExec() even if the result seen the same. When you send a message with ApplWrite(), we give the control to AES before to execute the message. With EvntExec(), events are executed directly. Some actions, as closing a window for example, can confuses AES if they are executed directly. Each time is possible, prefer ApplWrite() rather than EvntExec(). Give the control to AES increases the multasking performance.

SEE ALSO

EvntFind(), EvntAttach(), EvntDisable(), EvntEnable(), EvntRedraw().