Home » U++ Library support » U++ MT-multithreading and servers » How to update main thread UI when runing other thread
How to update main thread UI when runing other thread [message #24964] |
Sat, 06 February 2010 10:17 |
jiuzhi
Messages: 10 Registered: October 2009
|
Promising Member |
|
|
Thread work;
engine->working(true);
work.Run(callback(engine,&hEngine::getData));//-getData will do some UI refresh;
while (engine->working()){
Refresh();//It cann't update UI here;
Sleep(100);
}
I have thought of a solution is packaged into a function, and create a new Thread to run it;But it is too cumbersome.
In MFC,I can use PeekMessage;
In delphi,I can use Application.ProcessMessage;
Is there a similar solution in u++?
[Updated on: Sat, 06 February 2010 10:21] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 28 05:03:37 CEST 2024
Total time taken to generate the page: 0.06787 seconds
|