Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
jiuzhi is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SOLVED] File upload example
Next Topic: File upload to https [SOLVED]
Goto Forum:
  


Current Time: Wed Apr 24 01:57:48 CEST 2024

Total time taken to generate the page: 0.03475 seconds