🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Stop mouse movement.

#8807
From: Bogdan
Date: Fri, 17 Sep 2004 19:34
14 lines
1350 bytes
Hello

I have an apllication where I need to keep the mouse in the center of the
form.
The cursor shouldn't move, but I stiil need the OnMouseMove event handler to
be called.I've tried reseting the mouse position after every OnMouseMove
using
SetCursorPos, but it seems that this function actually calles OnMouseMove
again,
and the application crashes with a stack overflow because the event handler
is
called continuously.Anybody knows how can I solve this.

Bogdan.
Technical Details
Message-ID: <414b3c53@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!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4359950ebf6f4b9f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Bogdan" <boprea@xnet.ro>
From: "Bogdan" <boprea@xnet.ro>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Stop mouse movement.
Date: Fri, 17 Sep 2004 22:34:42 +0300
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 82.208.181.190
Message-ID: <414b3c53@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095449683 82.208.181.190 (17 Sep 2004 12:34:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail