hot keys in C++
I wrote a C++ program using .NET that dynamically displays push buttons in a window by reading a list of shortcuts (.lnk files) in a specific folder. Clicking on these push buttons start the corresponding program linked to the shortcut.
I now need to implement hotkeys for each of them and I've had some problems.
I need to know how to implement hotkeys. I've been trying a combination of CHotKeyCtrl.Create() and RegisterHotKey(). My program compiles without errors but I just don't know if the controls I create are even good and how to capture the hotkeys.
I would like the 1st program to be listed in my array of CButton to start by pressing CTRL-1, the 2nd program with CTRL-2, and so on.
Any help would be appreciated.
Carl
|