Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   PostMessaage and UI hangs (http://www.go4expert.com/forums/postmessaage-ui-hangs-t20006/)

Abhay Kumar 6Nov2009 11:28

PostMessaage and UI hangs
I've created an MFC application with one worker thread. The worker thread frequently post message to UI thread to update its control. During this period, UI does not receive input message such as mouse or keyboard messages. The UI receive input message when worker thread is stopped.<br>
I've read in <b>MSDN</b> that <b>PostMessage</b> has higher priority than input message. My requirement is that I want my window to process input message while its controls are being updated.<br>
If I reduce the frequency of PostMessaage, the problem is solved, but that's not my requirement.<br>
I've tried another non-queued message <b>SendNotifyMessage() </b>from worker thread, but that also does not work.
Thank you.

All times are GMT +5.5. The time now is 17:52.