资 源 简 介
《创建一个不可关闭的对话框》 [代码性质] VC完整应用程序代码 创建一个基于对话框的工程,一切默认即可。 在对话框的属性general中,设置caption为空,这样用ctrl+alt+del就发现不到此 程序。 在对话框的属性more stytle 中,选中disable,这样就不能用右键关闭此程序。 删除取消按钮,双击确定按钮,在其对应函数中将 CDialog::OnOK()删除。这样就 不能用回车关闭此程序。如果只是简单的删除确定按钮是不行的。 当然了,要是关闭计算机之类的操作,那就没办法了。 此程序我目前想不到有什么实际用途,不过用来搞恶作剧还是不错的。- "Founds Dialog box Which Cannot Be closed" [ code nature ] the
VC integrity application procedure code to found based on the dialog
box project, all tacitly approve then. In dialog box attribute
general, establishes caption is spatial, like this uses ctrl alt del
not to reach this point on the discovery the procedure. In dialog box
attribute more stytle, selects disable, like this cannot use the right
key to close this procedure. The deletion cancels the button,
double-clicks determines the button, () deletes in its homographic
function CDialog::OnOK. Like this cannot use the carriage return to
close this procedure. If only is the simple deletion determination
button is not good. Natural, if cl