禁用切换. [英] Disable switching.

查看:96
本文介绍了禁用切换.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何制作MFC 6.0对话框应用程序,以便用户在终止之前无法执行这些任务.
1.切换到任何其他应用程序.
2.打开任务管理器.
3.按开始键,打开开始菜单.
换句话说,用户一定不能失去对该应用程序的关注并执行任何其他任务.

How to make MFC 6.0 dialog application such that user cannot do these tasks until it terminates.
1. Switch to any other application.
2. Open task manager.
3. Open start menu my pressing win key.
In other words, user must not be able to lose focus from that application and do any other task.

推荐答案

...希望成为您应用的用户,以防出现问题!
您消除了所有返回我的系统控制的机会!

正确的方法是使dyalog系统模块(请参见WS_SYSMODAL样式)

它将按照您的要求进行操作(但如果出现问题,则允许Ctrl-Alt-Delete键)
... humm... I don''t want to be the user of your app, in case something will go wrong with it!
You eliminated all the chances to return in the control of my system!

The correct way is to make the dyalog System-Modal (see the WS_SYSMODAL style)

It will do what you asked (but allows Ctrl-Alt-Delete, in case something goes wrong)


您需要在应用程序启动时钩住键盘键.

此链接可帮助您禁用窗口键.
http://support.microsoft.com/kb/216893 [ http://www.codeproject.com/KB/cpp/ForTheKids.aspx [ ^ ]
You need to hook the keyboard key When ever your application start.

this link help you to disable window key.
http://support.microsoft.com/kb/216893[^]
check another example.
http://www.codeproject.com/KB/cpp/ForTheKids.aspx[^]


一般规则,请始终记住 它是您的软件,但不是您的计算机 :您要做的是避免计算机所有者去做他要在上面!可能大多数人会不喜欢这样的功能!
As a general rule, always remember that it''s your software, but it is not your computer: what you are going to do is avoiding the owner of the computer to do what he wants on it! Probably the most of people will dislike a feature like that!


这篇关于禁用切换.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆