Article View: borland.public.cppbuilder.nativeapi
Article #8001Re: Using SetWindowsHookEx() to target specific window control
From: Remy Lebeau (TeamB)
Date: Mon, 06 Dec 2004 08:08
Date: Mon, 06 Dec 2004 08:08
16 lines
1703 bytes
1703 bytes
"KR" <kr@nospamme.net> wrote in message news:pan.2004.12.04.14.08.51.613799@nospamme.net... > Once you have your edit control's HWND, you SetWindowsHookEx on that. You cannot call SetWindowsHookEx() on a specific window. It has no concept of windows to begin with, it only knows about threads and processes. If you install a hook on a specific thread, you get hook notifications for every window in that thread. If you install a hook on a specific process, you get notifications for every window in every thread of that process. If you install the hook globally, you get notifications of every window in every thread of every process. Gambit
Technical Details
Message-ID:
<41b41375$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419cdca5$1@newsgroups.borland.com> <419cf263$1@newsgroups.borland.com> <419d476c$1@newsgroups.borland.com> <pan.2004.12.04.14.08.51.613799@nospamme.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a7b5d77d3a61450f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <419cdca5$1@newsgroups.borland.com> <419cf263$1@newsgroups.borland.com> <419d476c$1@newsgroups.borland.com> <pan.2004.12.04.14.08.51.613799@nospamme.net> Subject: Re: Using SetWindowsHookEx() to target specific window control Date: Mon, 6 Dec 2004 00:08:43 -0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41b41375$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102320501 68.69.17.41 (6 Dec 2004 00:08:21 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail