问题描述
我想创建一个警告弹出框而不是阻止弹出框。
这意味着当弹出对话框出现时我应该仍然能够点击其他控件但是在我的场景中我必须单击OK按钮而不是弹出 - 向上窗口将消失,我可以点击其他控件,但我不想这样。
即使弹出窗口存在,我应该可以点击在窗户的另一边。
有谁可以帮我解决这个问题?
问候,
我尝试过:
在我的代码中我直接使用了AfxMessageBox (Some String。当我点击某个按钮时,它将直接进入这个方法,并在内部调用windows api。但是这个api给了我阻止弹出窗口,它不允许我点击任何地方直到我按下Ok按钮在弹出窗口中。
I wanted to create a warning pop-up box instead of a blocking pop.
It means when the pop-up dialog comes i should be still able to click on other controls but in my scenario i have to click OK button than only the pop-up window will go away and am able to click on other controls but i don't want that.
Even though pop-up is existing i should be able to click on other sides of windows.
Can anyone help me in this issue?
Regards,
What I have tried:
In my code i have directly used AfxMessageBox("Some String). When i click on some button it will directly come to this method and it calls internally windows api's. But this api gives me blocking pop-up window it won't allow me to click anywhere until i press Ok button in the pop-up window.
推荐答案
这篇关于需要使用MFC控件创建警告弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!