Article View: comp.os.ms-windows.programmer.win32
Article #2133Re: knowing if mouse is moving or not
From: Paul Andre LeBlanc
Date: Tue, 13 Jul 1999 00:00
Date: Tue, 13 Jul 1999 00:00
16 lines
1652 bytes
1652 bytes
Scott Seely wrote: > I'm not sure that WM_NCHITTEST will work (it should only get fired for non-client mouse movemenets?). No, it works in the client area as well - note that HTCLIENT is a defined return value, indicating that the mouse is in the client area. WM_NCHITTEST is sent immediately prior to the other mouse messages, and its return value determines whether the next message will be - for example - WM_MOUSEMOVE or WM_NCMOUSEMOVE. The most significant thing about WM_NCHITTEST is the fact that it gets passed from a child window up to its parent, allowing mouse motion anywhere in any child to be detected by the parent (very useful for implementing context-based help). Paul
Technical Details
Message-ID:
<378A8060.1454@sympatico.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<378A1A55.C9C5BA49@earthlink.net> <378A2D7A.2391@sympatico.ca> <eXvLQTJz#GA.248@cppssbbsa05>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,c96eac103b7a4cf X-Google-Attributes: gid113dfb,public X-Google-Thread: 103bde,c96eac103b7a4cf X-Google-Attributes: gid103bde,public X-Google-Thread: 110c1b,c96eac103b7a4cf X-Google-Attributes: gid110c1b,public From: Paul Andre LeBlanc <paul.a.leblanc@sympatico.ca> Subject: Re: knowing if mouse is moving or not Date: 1999/07/13 Message-ID: <378A8060.1454@sympatico.ca> X-Deja-AN: 500308949 Content-Transfer-Encoding: 7bit References: <378A1A55.C9C5BA49@earthlink.net> <378A2D7A.2391@sympatico.ca> <eXvLQTJz#GA.248@cppssbbsa05> Content-Type: text/plain; charset=us-ascii X-Trace: news21.bellglobal.com 931824056 206.172.236.99 (Mon, 12 Jul 1999 20:00:56 EDT) Organization: Sympatico MIME-Version: 1.0 NNTP-Posting-Date: Mon, 12 Jul 1999 20:00:56 EDT Newsgroups: comp.os.ms-windows.programmer.win32,microsoft.public.win32.programmer.ui,borland.public.cpp.winapi