Click here to Skip to main content
15,924,581 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How To Link A Menu button with another program Pin
(Steven Hicks)n+110-Jan-03 17:03
(Steven Hicks)n+110-Jan-03 17:03 
GeneralSaving/Loading Toolbar State Pin
Dov Sherman10-Jan-03 7:31
Dov Sherman10-Jan-03 7:31 
GeneralLinux Inter-process mutexes/semaphores Pin
KevinHall10-Jan-03 7:29
KevinHall10-Jan-03 7:29 
GeneralRe: Linux Inter-process mutexes/semaphores Pin
Anonymous10-Jan-03 11:30
Anonymous10-Jan-03 11:30 
GeneralRe: Linux Inter-process mutexes/semaphores Pin
Anonymous10-Jan-03 12:28
Anonymous10-Jan-03 12:28 
Generalblocking all escape keys Pin
joshfl10-Jan-03 7:13
joshfl10-Jan-03 7:13 
GeneralRe: blocking all escape keys Pin
Carlos Antollini10-Jan-03 9:07
Carlos Antollini10-Jan-03 9:07 
GeneralRe: blocking all escape keys Pin
joshfl10-Jan-03 9:27
joshfl10-Jan-03 9:27 
GeneralRe: blocking all escape keys Pin
Carlos Antollini10-Jan-03 15:51
Carlos Antollini10-Jan-03 15:51 
GeneralRe: blocking all escape keys Pin
Joan M10-Jan-03 9:30
professionalJoan M10-Jan-03 9:30 
1. If you want to control Ctrl+Alt+Del you should create a GINA.DLL or try to find out one.

2. If you want to avoid all the strange keystrokes like Windows keys and so on... you must create a "keyboard system wide hook". This can handle all the keys you want to having your app. the focus or not.

3. If you want to handle normal keys you can do it as the other answer says, but it will control only the keys selected in your application when your application have the focus.

4. if you want to get the keyboard controlled since the beggining you should call the hook from a windows service in order to get it loaded before the user have logged on...

My advice:
1. system service
2. System wide hook (note that it must be placed in a DLL)
3. manipulate (start,stop...) the service from your app.


hope this helps...
GeneralRe: blocking all escape keys Pin
joshfl10-Jan-03 9:50
joshfl10-Jan-03 9:50 
GeneralRe: blocking all escape keys Pin
joshfl10-Jan-03 10:04
joshfl10-Jan-03 10:04 
GeneralRe: blocking all escape keys Pin
joshfl10-Jan-03 10:11
joshfl10-Jan-03 10:11 
GeneralWM_TIMER question Pin
Mazdak10-Jan-03 7:11
Mazdak10-Jan-03 7:11 
GeneralRe: WM_TIMER question Pin
#realJSOP10-Jan-03 7:43
professional#realJSOP10-Jan-03 7:43 
GeneralRe: WM_TIMER question Pin
Mazdak11-Jan-03 0:12
Mazdak11-Jan-03 0:12 
GeneralRe: WM_TIMER question Pin
#realJSOP11-Jan-03 1:35
professional#realJSOP11-Jan-03 1:35 
GeneralRe: WM_TIMER question Pin
Mazdak11-Jan-03 2:25
Mazdak11-Jan-03 2:25 
GeneralON_WM_CREATE question Pin
ns10-Jan-03 5:23
ns10-Jan-03 5:23 
GeneralRe: ON_WM_CREATE question Pin
Alvaro Mendez10-Jan-03 5:52
Alvaro Mendez10-Jan-03 5:52 
GeneralRe: ON_WM_CREATE question Pin
ns10-Jan-03 5:57
ns10-Jan-03 5:57 
GeneralRe: ON_WM_CREATE question Pin
ns10-Jan-03 6:08
ns10-Jan-03 6:08 
GeneralRe: ON_WM_CREATE question Pin
Tim Smith10-Jan-03 6:09
Tim Smith10-Jan-03 6:09 
GeneralRe: ON_WM_CREATE question Pin
John M. Drescher10-Jan-03 6:16
John M. Drescher10-Jan-03 6:16 
GeneralRe: ON_WM_CREATE question Pin
AlexO10-Jan-03 7:12
AlexO10-Jan-03 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.