Block Alt+Tab, Alt+Esc key combination 
Author Message
 Block Alt+Tab, Alt+Esc key combination

Can we disable Alt+Tab and Alt+Esc key combination in
windows Nt/2000. If yes then how?

Thanks.



Sat, 05 Nov 2005 13:25:34 GMT  
 Block Alt+Tab, Alt+Esc key combination

Quote:
>-----Original Message-----
>Can we disable Alt+Tab and Alt+Esc key combination in
>windows Nt/2000. If yes then how?

>Thanks.
>.

You can do that in PreTranslateMessage:

BOOL ClassName::PreTranslateMessage (MSG* pMsg)
{
 BYTE   abKeyState [256];

 if (pMsg->message == WM_KEYDOWN) {
  switch( pMsg->wParam ) {
  case VK_TAB:
     if (!GetKeyboardState (abKeyState))
         break;
     if ((abKeyState [VK_MENU] & 0x80) != 0) {
         ::DispatchMessage (pMsg);
         return TRUE;
     }

 }

Quote:
}



Sat, 05 Nov 2005 14:12:49 GMT  
 Block Alt+Tab, Alt+Esc key combination
http://www.codeproject.com/useritems/PreventClose.asp


Quote:
> Can we disable Alt+Tab and Alt+Esc key combination in
> windows Nt/2000. If yes then how?

> Thanks.



Sun, 06 Nov 2005 09:38:33 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. disable Alt+ TAB Ctrl+ESC Ctrl+Alt+DEL key

2. Alt-Tab/Alt-Esc Event

3. Alt+Tab or Alt+Esc

4. Can Alt-Tab and Alt-Esc be altered?

5. Trapping Ctrl+Alt+Del / Ctrl+Esc / Ctrl+Alt+Esc

6. Diable Ctrl+Alt+Del key combination

7. simulate a Ctrl+Alt+Del or Alt-Tab

8. supress Alt+Tab, Ctrl+Esc on NT4.0

9. ALT-TAB CTRL-ESC tapping in windows NT

10. Proposal: alt.binaries.examples.vb4 , alt.binaries.examples.vcpp , alt.binaries.examples.java

11. Alt+TAB keys in WindowsNT

12. Catching ALT + TAB keys

 

 
Powered by phpBB® Forum Software