1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PostMessaage and UI hangs

Discussion in 'MFC' started by Abhay Kumar, Nov 6, 2009.

  1. Abhay Kumar

    Abhay Kumar New Member

    Sep 25, 2009
    Likes Received:
    Trophy Points:
    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.

Share This Page