Skill Questions... [Archive] - Quintessential Forum

PDA

View Full Version : Skill Questions...


shaohao
11-22-2003, 05:03 PM
Hi, Paul:
Can you give me a hand? I just want to know how to catch the Ctrl+Click global message as you did in your QCDHotKey plug-in--use SetwindowsHook or SetCapture API?

Paul
11-22-2003, 05:33 PM
Hey Shaohao,
You can get the control-click by checking for the ctrl key state on WM_LBUTTONDOWN like so:
BOOL bControlPressed = HIWORD(GetKeyState(VK_CONTROL));

If you want a global hotkey use RegisterHotKey().