// JP opened flex table

Click to See Complete Forum and Search --> : Thread question in Win32


kabilius
June 25th, 2008, 09:24 AM
Hi all,

I am a little confused on how thread works in Win32.
Let's say I have 2 threads - thread A and B

Here is the scenario:
Thread A is the main thread.
Thread B launches when a thread A discovered a MessageBox needs to be displayed.
Then thread B display the MessageBox.

In this scenario, I understand that thread B is stuck until an end user dismiss the MessageBox, but is thread A running freely? or is it stuck as well?

Please advise,
Thank you,
kab

egawtry
June 25th, 2008, 10:10 AM
Thread A is still running freely. BUT if you are using windows, MessageBox disables the parent window so it may appear to stop since the Message Queue filters some messages when disabled.

You may want to look into Modeless dialogs.

-Erik

kabilius
June 27th, 2008, 09:34 AM
Hi egawtry,

Got it, thank you for your reply.

Kab

//JP added flex table