Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALT + TAB Code

Status
Not open for further replies.

sumir

Technical User
Oct 24, 2002
4
US
Hi
I am writing a password program . In order for it to work correctly i need to disable Alt+Tab .Can anyone tell me how to write code for ALT + TAB key in C. I want when a user presses ALT + TAB keys together it should print a message say Hello world
please help me
Sumir
 
What OS/Compiler are you using? The answers will vary depending on the OS/Compiler.
 
I am using Borland C++ and Windows XP OS
 
Alt-Tab is a standard feature on Windows for switching between applications. I don't think it is a good idea to disable it. Having said that, you could try making your dialog system modal.
 
i am writing a password program and in order to work it correctly i want when a user presses alt + tab key the profram should display invalid key instead of toggling window screen.Any help will be appreciated
Thank you
Sumir
 
Try defining it as an accelerator. In fact, you can trap most of the system accelerators by defining your own accelerators to use the same key sequences. I've never done this before so let us know if it works. That's about the only idea I can come up with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top