A function binded to an event has the following prototype :
void function( WINDOW *win);where win is the descriptor of the targeted window or NULL if the event addresses the application.
EvntAttach( NULL, WM_XBUTTON, AppButton);Define the button event of a window:
EvntAttach( win, WM_XBUTTON, WinButton);Define the window destroy event:
EvntAttach( win, WM_DESTROY, WinDestroy);Define a global event message (the application shutdown):
EvntAttach( NULL, AP_TERM, ApTerm);