如何显示/隐藏对话框? [英] how to show/hide a dialouge box?
本文介绍了如何显示/隐藏对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在某些条件之后启用和禁用...对于初始阶段,其中一个控件应该隐藏并且在调用另一个dialogBox之后(通过 DoModal()
)和执行某些功能隐藏对话应该启用..
我使用:
I need to enable and disable after certain criteria...for initial stage one of the controls should be hide and after calling another dialogueBox (through DoModal()
) and performing some functions the hided dialogue should get enable..
I used:
GetItem(IDD_)->EnableWindow(TRUE/FALSE);
..不适用于后期条件
..Not working for the later condition
推荐答案
如果你想在另一个对话框中调用
DoModal
时隐藏对话框,你可以调用ShowWindow
onDoModal
调用之前和之后的对话框。类似于:
If you want to hide the dialog when calling
DoModal
on another dialog from it, you can callShowWindow
on the dialog before and after theDoModal
call. Something like:
this->ShowWindow(SW_HIDE);
// Call DoModal here.
this->ShowWindow(SW_SHOW);
这篇关于如何显示/隐藏对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文