how does the UIThread and worker thread communicates and
handle events
Answers were Sorted based on User's Feedback
Answer / vikram
UI thread and Worker thread can communicate with each other using SendMessage() or PostMessage().SendMessage() returns when the message is used by the Thread. PostMessage Returns immediately. These two method require Window handle of the UI Thread.
One can also use PostThreadMessage(thread id, message).here UI thread id is required.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vishnu
Worker threads are used to process in back and can not
modify any user interface directly.
Ex: Used to calculate some complicated calculations.
UI threads can change user interface directly
Ex: Used to change UI display images in windows MFC
application
| Is This Answer Correct ? | 1 Yes | 3 No |
How to handle command line arguements from simple MFC application ?
What is the use of CObject::Dump function ?
How to find the mouse entering an image?..while entering need to display next image...
What is primitive and non-primitive application?
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,
What is the base class for MFC
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
List out the parameters of WinMain Function.
How you find memory leaks?
Have you ever used win32 APIs ?
how many types of messages are their
What is the difference between workrer thread and UI thread