Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding Mouse Position

0 views
Skip to first unread message

Christopher G Meenan

unread,
Dec 15, 1995, 3:00:00 AM12/15/95
to

can anyone please tell me how I can find out where the mouse is at any given
time , without having to capture it. The Problem is I want to create hints for
a toolbar , I want a delay of about 0.5 of a second (I use WM_TIMER) before
the hint appear but then I want to move the hint window about 15 pixels beneath
the mouse pointer , but I can't find it anywhere. I don't want to capture the
mouse input as this is far to much hassle under my program model....


chris

--------------------------------------------------------------------------------
Christopher.G.Meenan | /
Centre for Satellite Engineering Research | / ---
University of Surrey |< | ---
| \ |--- | | -----
Tel: +44 (0) 1483 259808 | \ | |---| | ---
Fax: +44 (0) 1483 259504 --- | | | |
Email: c.me...@ee.surrey.ac.uk | | | ---
| |
-------------------------------------------------------------------------------- ---


Chris Marriott

unread,
Dec 15, 1995, 3:00:00 AM12/15/95
to
In article <4arnm4$e...@info-server.surrey.ac.uk>

C.Me...@ee.surrey.ac.uk "Christopher G Meenan" writes:

>
>can anyone please tell me how I can find out where the mouse is at any given
>time , without having to capture it.

"GetCursorPos"

Chris

--
--------------------------------------------------------------------------
Chris Marriott, Warrington, UK | Author of SkyMap v2 award-winning
ch...@chrism.demon.co.uk | shareware Windows planetarium.
For full info, see http://www.execpc.com/~skymap
Author member of Association of Shareware Professionals (ASP)
--------------------------------------------------------------------------


Kevin Hazzard

unread,
Dec 16, 1995, 3:00:00 AM12/16/95
to
Christopher G Meenan wrote:
>
> can anyone please tell me how I can find out where the mouse is at any given
> time , without having to capture it. The Problem is I want to create hints for
> a toolbar , I want a delay of about 0.5 of a second (I use WM_TIMER) before
> the hint appear but then I want to move the hint window about 15 pixels beneath
> the mouse pointer , but I can't find it anywhere. I don't want to capture the
> mouse input as this is far to much hassle under my program model....

Call GetMessagePos() in your WM_TIMER handler. It'll tell you where the mouse was when
the timer message was generated.

-- Kevin

http://users.aol.com/khazzard/

Jez Higgins

unread,
Dec 19, 1995, 3:00:00 AM12/19/95
to
C.Me...@ee.surrey.ac.uk (Christopher G Meenan) wrote:
>
>can anyone please tell me how I can find out where the mouse is at any
>given time , without having to capture it.

Look up GetCursorPos in the help files.

Jez


0 new messages