Article View: borland.public.cppbuilder.nativeapi
Article #4080Re: Passing key presses on to another form
From: Anders Johansen
Date: Mon, 27 Mar 2006 14:41
Date: Mon, 27 Mar 2006 14:41
22 lines
1606 bytes
1606 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: >Anders Johansen wrote: > >> I want keyboard key presses >>(not mouse key events) to be passed on to the main form. I know which >>control on the main form to give focus, and how to do it, but the catching, >>screening and then passing on of the keyboard events eludes me. >> >>Any easy solutions? > >Look at SetWindowsHookEx() > >If you have trouble with it, Google "borland SetWindowsHook" >Remy has posted code and advise several times on this. Well, I had hoped for something a little less heavy duty. I am already using swhe for quite a few things, but would like to contain the usage somewhat. Sincerely A
Technical Details
Message-ID:
<44280790$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<4426b7b7$1@newsgroups.borland.com> <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2f0c7fdce41e2cf X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Anders Johansen" <home@dduck.dk> Sender: "Anders Johansen" <home@dduck.dk> Reply-To: "Anders Johansen" <home@dduck.dk> Subject: Re: Passing key presses on to another form Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 217.157.225.50 References: <4426b7b7$1@newsgroups.borland.com> <v9kd229pnqv0clgsi0al21rcp42c4k620t@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44280790$1@newsgroups.borland.com> Date: 27 Mar 2006 07:41:04 -0700 X-Trace: newsgroups.borland.com 1143474064 207.105.83.66 (27 Mar 2006 07:41:04 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail