How can I make a child process window to appear modal in my process?

前端 未结 6 1168
青春惊慌失措
青春惊慌失措 2021-02-08 23:36

I have an application that calls some other utility application to set some settings for a particular device. That utility application is called using ShellExecuteEx.

So

6条回答
  •  隐瞒了意图╮
    2021-02-09 00:25

    EnableWindow is correct, this is generally how message boxes and other "modal" windows do it. As for zorder changing, you can intercept the WM_WINDOWPOSCHANGING message and set the SWP_NOZORDER flag to prevent the zorder change. Make sure you only do this while you are setting EnableWindow(false).

提交回复
热议问题