🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_MOUSEMOVE and OnMouseMove

#3793
From: Remy Lebeau (TeamB)
Date: Mon, 24 Apr 2006 19:04
22 lines
1726 bytes
"JD" <nospam@nospam.com> wrote in message
news:444c5cfe$1@newsgroups.borland.com...

> I was wondering how the VCL does it

I guess you didn't try looking at the VCL source code yet.

> it gets X,Y just like I'm getting them

No, it is not.  You are using the LO/HIWORD macros.  The VCL does not do
that.

> they're passed to the event as ints just like I was doing it.

The VCL is retrieving the values as signed shorts to begin with, but your
code is retreiving them as unsigned shorts instead.  A signed short passed
to a signed int parameter will preserve the sign.  Passing an unsigned short
to a signed int parameter will not preserve the sign for negative values.


Gambit
Technical Details
Message-ID: <444d21dd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <444b800f$1@newsgroups.borland.com> <sqbn42tbb8g362frcp784ghpeo7907h21r@4ax.com> <vrcn42l1hnspdob90kmpqeei06cssbokme@4ax.com> <444c5cfe$1@newsgroups.borland.com>
Subject: Re: WM_MOUSEMOVE and OnMouseMove
Date: Mon, 24 Apr 2006 12:04:35 -0700
Lines: 24
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: <444d21dd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145905629 68.69.17.41 (24 Apr 2006 12:07:09 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail