1. Possible get_mouse() style in Win32?

------=_NextPart_000_004C_01BED2D5.6C993700
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is it possible to get for the desktop in Win32/Win32Lib to get mouse =
events returned in the same way as mouse.e's get_mouse() (event,x,y)?  I =
would like to do it this way so I don't have to putz with hooking events =
and such.  I know for x and y I use GetCursorPos(), but what about the =
event?  Is it possible?

Thanks,
Mike Hurley

------=_NextPart_000_004C_01BED2D5.6C993700
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Is it possible to get for the =
desktop in=20
Win32/Win32Lib to get mouse events returned in the same way as mouse.e's =

get_mouse() (event,x,y)?&nbsp; I would like to do it this way so I don't =
have to=20
putz with hooking events and such.&nbsp; I know for x and y I use=20
GetCursorPos(), but what about the event?&nbsp; Is it =
possible?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Thanks,<BR>Mike=20

------=_NextPart_000_004C_01BED2D5.6C993700--

________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

new topic     » topic index » view message » categorize

2. Re: Possible get_mouse() style in Win32?

Mike
If your talking about windows you have to use window messages to
use the mouse. If you have a book I think you want to read up on the
WM_NCHITTEST ( which stands for WindowMessage_NonClientHitTest )
Don't be fooled by its name it causes DefWindowProc to return HIT-VALUES
like
HTCLIENT -- In the client area
HTCAPTION -- In the caption (title-bar)
and 22 more other Hit-Values.
Using this information you just have to watch for the area your interested
in on the a particular desktop window then use the mouse messages to
process on the hotspot of your mouse's cursor.
I think you are having trouble because you are trying to track the
mouse for every second. You have to let windows do the work for you.
Remember EVERY feature of windows is not implimented in WIN32LIB so
sometimes you have add them.

If you don't have the WIN32 definitions download the win32.ZIP doc
whose FTP download address is in the PLATFORM.DOC

Maybe David could explain better how to use the mouse in windows
than I can.

Thanks Bernie

new topic     » goto parent     » topic index » view message » categorize

3. Re: Possible get_mouse() style in Win32?

Mike Hurley wrote:

> Is it possible to get for the desktop in Win32/Win32Lib
> to get mouse events returned in the same way as mouse.e's
> get_mouse() (event,x,y)?

Are you asking how to find the mouse's position when your application has
focus, or do you want to find the mouse even when the pointer is not over
your application's screen?

Some hint as to what you are trying to accomplish would be helpful.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu