Always-in-front dialogs

后端 未结 2 2036
忘掉有多难
忘掉有多难 2020-12-06 17:21

Is there a way to create a modeless dialog box in C++ MFC which always stays on top of the other windows in the application? I\'m thinking sort of like the Find dia

2条回答
  •  忘掉有多难
    2020-12-06 18:03

    The accepted answer fails for Windows 7 or above. (Or perhaps its me) But making the modeless dialog as popup instead of child solves it. It now gets positioned wrt main dialog window but you can write code to constrain anywhere. Using the no border or top bar makes it a simple window.

提交回复
热议问题