A dialog in a different thread than its parent?

  • Thread starter Thread starter DoB
  • Start date Start date
D

DoB

Hi,

Is there anything dangerous in creating a dialog box in one thread and
setting its parent to a form in another thread?

Regards,
DoB.
 
DoB,

Dangerous? Well, the fact that the behavior is undefined (and possibly
forbidden) seems dangerous enough to me.

Why would you want to do such a thing?
 
Dangerous? Well, the fact that the behavior is undefined (and possibly
forbidden) seems dangerous enough to me.

Hi,
this is quite surprising, because it was working perfectly in win32 api.

Why would you want to do such a thing?

I have two independent windows in two threads, and I want the second to
always float over the first one in the Z-order.
Maybe there is a different method of achieving this than setting the parent,
but this was my first guess...

DoB,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top