Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Jochen Arndt12-Jul-18 23:13
professionalJochen Arndt12-Jul-18 23:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097913-Jul-18 6:54
User 1106097913-Jul-18 6:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Randor 23-Jul-18 12:20
professional Randor 23-Jul-18 12:20 
PraiseRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097923-Jul-18 20:48
User 1106097923-Jul-18 20:48 
Questionneed COM/DCOM basics Pin
Sakthiu11-Jul-18 3:35
Sakthiu11-Jul-18 3:35 
AnswerRe: need COM/DCOM basics Pin
jeron111-Jul-18 4:07
jeron111-Jul-18 4:07 
QuestionGlobal key press [SOLVED] Pin
Valentinor14-Jul-18 18:38
Valentinor14-Jul-18 18:38 
SuggestionRe: Global key press Pin
Jochen Arndt10-Jul-18 2:45
professionalJochen Arndt10-Jul-18 2:45 
It depends if "globally" applies to the system (user session) or an application. For an application it depends on the type (console or GUI). With GUI applications it depends also if you want to catch all / multiple or only a single / few key combinations.

The most "global" method is hooking keyboard events with SetWindowsHookEx function (Windows)[^].

For application level handling see About Keyboard Input | Microsoft Docs[^] and follow the links.

To handle only a few specific keyboard events for GUI applications use Accelerators (Hotkeys) processed by the main window of the application.
GeneralRe: Global key press Pin
Valentinor10-Jul-18 8:29
Valentinor10-Jul-18 8:29 
GeneralRe: Global key press Pin
Jochen Arndt10-Jul-18 21:21
professionalJochen Arndt10-Jul-18 21:21 
GeneralRe: Global key press Pin
Randor 10-Jul-18 23:53
professional Randor 10-Jul-18 23:53 
GeneralRe: Global key press Pin
Valentinor11-Jul-18 5:09
Valentinor11-Jul-18 5:09 
GeneralRe: Global key press Pin
Jochen Arndt11-Jul-18 6:40
professionalJochen Arndt11-Jul-18 6:40 
GeneralRe: Global key press Pin
Valentinor13-Jul-18 20:45
Valentinor13-Jul-18 20:45 
GeneralRe: Global key press Pin
Jochen Arndt13-Jul-18 21:00
professionalJochen Arndt13-Jul-18 21:00 
GeneralRe: Global key press Pin
Valentinor14-Jul-18 10:58
Valentinor14-Jul-18 10:58 
QuestionOnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 4:34
Member 138991789-Jul-18 4:34 
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 5:26
mveRichard MacCutchan9-Jul-18 5:26 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 20:37
Member 138991789-Jul-18 20:37 
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 21:04
mveRichard MacCutchan9-Jul-18 21:04 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 21:06
Member 138991789-Jul-18 21:06 
SuggestionRe: OnDeviceChange dbcc_name length Pin
David Crow9-Jul-18 16:24
David Crow9-Jul-18 16:24 
AnswerRe: OnDeviceChange dbcc_name length Pin
Jochen Arndt9-Jul-18 22:57
professionalJochen Arndt9-Jul-18 22:57 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 23:26
Member 138991789-Jul-18 23:26 
GeneralRe: OnDeviceChange dbcc_name length Pin
Jochen Arndt9-Jul-18 23:42
professionalJochen Arndt9-Jul-18 23:42 

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.