文件名称:wangyue1
介绍说明--下载内容均来自于网络,请自行研究使用
使用方法:
1:
包含C++类CCADMgr头文件,如:#include \"CADMgr.h\"
2:
定义变量如:CCADMgr m_cadMgr
3: 设置Ctrl+Alt+Del消息通知窗口,如:m_cadMgr.SetTargetWnd(m_hWnd)
4: 禁用或启用,如:m_cadMgr.DisableCAD(m_bDisabled)
5: 响应消息:
声明函数:afx_msg void OnHotKey(WPARAM wParam, LPARAM lParam)
消息映射:ON_MESSAGE(WM_HOTKEY, OnHotKey)
函数实现:
void CTrapCADDlg::OnHotKey(WPARAM wParam, LPARAM lParam)
{
WORD wKey = HIWORD(lParam)
WORD wModifier = LOWORD(lParam)
BOOL bAltDown = ((wModifier & VK_MENU) != 0 ? TRUE : FALSE)
BOOL bCtrlDown = ((wModifier & VK_CONTROL) != 0 ? TRUE : FALSE)
//按下Ctrl + Alt + Del组合键
if(bCtrlDown && bAltDown && wKey == VK_DELETE)
AfxMessageBox(\"对不起, Ctrl+Alt+Delete组合键已经被禁用了!\", MB_OK|MB_IConERROR)
1:
包含C++类CCADMgr头文件,如:#include \"CADMgr.h\"
2:
定义变量如:CCADMgr m_cadMgr
3: 设置Ctrl+Alt+Del消息通知窗口,如:m_cadMgr.SetTargetWnd(m_hWnd)
4: 禁用或启用,如:m_cadMgr.DisableCAD(m_bDisabled)
5: 响应消息:
声明函数:afx_msg void OnHotKey(WPARAM wParam, LPARAM lParam)
消息映射:ON_MESSAGE(WM_HOTKEY, OnHotKey)
函数实现:
void CTrapCADDlg::OnHotKey(WPARAM wParam, LPARAM lParam)
{
WORD wKey = HIWORD(lParam)
WORD wModifier = LOWORD(lParam)
BOOL bAltDown = ((wModifier & VK_MENU) != 0 ? TRUE : FALSE)
BOOL bCtrlDown = ((wModifier & VK_CONTROL) != 0 ? TRUE : FALSE)
//按下Ctrl + Alt + Del组合键
if(bCtrlDown && bAltDown && wKey == VK_DELETE)
AfxMessageBox(\"对不起, Ctrl+Alt+Delete组合键已经被禁用了!\", MB_OK|MB_IConERROR)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 15883861wangyue1.rar 列表 wangyue1\ReadMe.txt wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\CADMgr.cpp wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\CADMgr.h wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\res\TrapCAD.ico wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\res\TrapCAD.rc2 wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\res wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\Resource.h wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\StdAfx.cpp wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\StdAfx.h wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.aps wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.clw wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.cpp wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.dsp wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.dsw wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.h wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.ncb wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.opt wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.plg wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCAD.rc wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCADDlg.cpp wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版\TrapCADDlg.h wangyue1\动态禁用启用Window 2000下的Ctrl+Alt+Delete组合键 终结版 wangyue1