🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3874

Re: WM_MOUSEMOVE and OnMouseMove

#3874
From: Bob Gonder
Date: Mon, 24 Apr 2006 06:34
20 lines
1811 bytes
JD wrote:
>
>and Changed that to ...( ... short X, short Y ); but I was
>wondering how the VCL does it because it gets X,Y just like
>I'm getting them and they're passed to the event as ints
>just like I was doing it.

Maybe they don't process negative values (mouse outside the client
window) ?
MSDN:
"The WM_MOUSEMOVE message is posted to a window when the cursor moves.
If the mouse is not captured, the message is posted to the window that
contains the cursor. Otherwise, the message is posted to the window
that has captured the mouse."

Since most windows likely don't capture the mouse, they would only get
positive values, and the LOWORD to int conversion would be correct.


(or perhaps you are looking at 16 bit code examples?)
Technical Details
Message-ID: <2fro421v4sn6sv9fgrfeekcq0mafrs47on@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <444b800f$1@newsgroups.borland.com> <sqbn42tbb8g362frcp784ghpeo7907h21r@4ax.com> <vrcn42l1hnspdob90kmpqeei06cssbokme@4ax.com> <444c5cfe$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,526c370a5f30e5cc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WM_MOUSEMOVE and OnMouseMove
Date: Sun, 23 Apr 2006 23:34:58 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <2fro421v4sn6sv9fgrfeekcq0mafrs47on@4ax.com>
References: <444b800f$1@newsgroups.borland.com> <sqbn42tbb8g362frcp784ghpeo7907h21r@4ax.com> <vrcn42l1hnspdob90kmpqeei06cssbokme@4ax.com> <444c5cfe$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.146.52
X-Trace: newsgroups.borland.com 1145860494 67.77.146.52 (23 Apr 2006 23:34:54 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail