1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

PostMessaage and UI hangs

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

  1. Abhay Kumar

    Abhay Kumar New Member

    Joined:
    Sep 25, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi<br>
    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