Hello
In a program with many worker threads running, one Main thread in higher
priority receiving messages from worker threads(Sendmessage to Main thread).
Did not know much about WaitMessage.
Thanks
In a program with many worker threads running, one Main thread in higher
priority receiving messages from worker threads(Sendmessage to Main thread).
Code:
'Is this a better procedure Do WaitMessage Dialog Doevents 'User Input if quitflag then exit do Loop 'Than this Do x=PeekMessage(msg, hDlg, 0, 0, 0) 'No Remove if x then Dialog Doevents else Sleep w 'w computed based on number of worker threads end if if quitflag then exit do Loop
Thanks
Comment