🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Carl Danley Sat, 05 Jul 2008 20:36
global hotkey?
#211
Author: Carl Danley
Date: Sat, 05 Jul 2008 20:36
2 lines
1093 bytes
is there an API call for a global hotkey? if so, how do I go about setting 
this up? 
Re: global hotkey?
#214
Author: Sean Farrow
Date: Mon, 07 Jul 2008 07:46
23 lines
1858 bytes
Hi:
To SEt a global Hotkey use the RegisterHotKey function declared in 
windows.h.
This unction take the hwnd to the indows to recieve the wm_hotkey message, 
the unique id o the hotkey you registering (see note later regarding dlls), 
any modifiers you with to use and the virtual key code of the key you wish 
to register.
If your using a shared dll, you need to use GlobalAddAtom and save the 
returned value somewhere as aposed to choosingyour own id. This is to do 
with the ranges of values hotkeys from dlls can take.
To unregister a hotkey youuse UnRegisterHotKey again declared in windows.h.
You also need to handle the wm-hotkey message in the window the hotkey 
pertanes to.
The following will give you more info:
REgisterHotKey:
www.msdn.microsoft.com/en-us/library/ms646309.aspx"
hth
Sean.

Carl Danley" <cdanley@codebyter.com> wrote in message 
news:486fdb54@newsgroups.borland.com...
> is there an API call for a global hotkey? if so, how do I go about setting 
> this up? 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads