In one of the PB sample apps, a user-defined message is generated when the thread completes.
Are there no messages automatically sent to a dialog when a thread is created or when it closes?
Here's the relevant segments of code from that application.
Are there no messages automatically sent to a dialog when a thread is created or when it closes?
Here's the relevant segments of code from that application.
Code:
%CM_THREAD_COMPLETE = %WM_USER + 1 Case %CM_THREAD_COMPLETE Thread Close hThread TO hThread Control Enable CB.Hndl, %ID_BTN_CALC Function PrimeThread(BYVAL hDlg AS LONG) AS LONG Dialog Post hDlg, %CM_THREAD_COMPLETE, 0, 0 End Function
Comment