Hi Roger,
can this technic also be used to terminate running threads ?
Or what is the preferred technic for that ?
scalefactor and autoresize gives an error
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: scalefactor and autoresize gives an error
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: scalefactor and autoresize gives an error
Yes. You must remember though that you can only send events to threads in which there is a running event loop.can this technic also be used to terminate running threads ?
eXpress++ windows automatically handle events that are defined by the DCUSEREVENT command.
If you want to send a TERMINATE event to a thread you would do it like this:
#define TERMINATE_THREAD_EVENT xbeP_User + 101
// Window receiving the event
DCUSEREVENT TERMINATE_THREAD_EVENT ACTION {||DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)}
// Thread sending the event
PostAppEvent( TERMINATE_THREAD_EVENT, , , oReceivingWindow )
The eXpress train is coming - and it has more cars.