First of all, I would like to agree with other posters that it is probably better to show the dialog in the main user interface thread.
However, if necessary, you can make the dialog in another thread modal as follows:
- When creating a dialog, pass your active window as the owner.
- ,
EnableWindow(FALSE). , . , , EnableWindow(TRUE). - , .
, (2) , (1), MFC, , . , Win32. , (1) (3) .