PostMessaage & UI hangs RRS feed

  • Question

  • Hi,

    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.

    I've read in MSDN that PostMessage has higher priority than input message. My requirement is that I want my window to process input message while its controls are being updated.

    If I reduce the frequency of PostMessaage, the problem is solved, but that's not my requirement.

    I've tried another non-queued message SendNotifyMessage() from worker thread, but that also does not work.

    I am uploading my sample application. Is there any way to filter out some messages? Please help me out.

    Thank you.

    Friday, November 6, 2009 4:42 AM