James Hughes
July 14th, 1999, 08:43 AM
I have an app which has a worker thread. When the worker thread reaches a certain stage it need to bring the app to the foreground ready for user input.
What is the best way to activate the app and bring it to the foreground from a different thread?
I have tried AfxGetMainWnd()->SetWindowPos(&CWnd::wndTop....) but this doesnt seem to work.
Any other ideas?
I also need to kick the idle processing off (the main app needs to do some processing in idle time, on demand from the worker thread). However, the idle fn is not called unless the window in active. Is there a way of kicking off the idle time stuff, agian from theworker thread?
TIA
James Hughes
Software Engineer
Spaceward Graphics Ltd, Home of Satori
What is the best way to activate the app and bring it to the foreground from a different thread?
I have tried AfxGetMainWnd()->SetWindowPos(&CWnd::wndTop....) but this doesnt seem to work.
Any other ideas?
I also need to kick the idle processing off (the main app needs to do some processing in idle time, on demand from the worker thread). However, the idle fn is not called unless the window in active. Is there a way of kicking off the idle time stuff, agian from theworker thread?
TIA
James Hughes
Software Engineer
Spaceward Graphics Ltd, Home of Satori