Is there a way to keep getting Windows messages while the UI-thread is suspended?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onur karabulut
    New Member
    • Jan 2011
    • 2

    #1

    Is there a way to keep getting Windows messages while the UI-thread is suspended?

    Hi, I have a simple question for you guys. In my WinForms app, I'm using WndProc to trap certain Windows messages. I sometimes need to block the Main UI-Thread (waiting for a worker thread or a modal dialog box to close). WndProc stops working once that happens. Is there a way to keep getting Windows messages while the UI-thread is suspended?

    Thanks.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Don't suspend the thread, suspend the objects.
    Do you have specific reason why the GUI thread HAS to be suspended? Generally that is the opposite of what you want.

    Comment

    Working...