Re: WIN API Mouse?

new topic     » goto parent     » topic index » view thread      » older message » newer message

YES, but I dont have an onMouse because I left Win32Lib a couple months
ago to avoid bugs and slow programs....

Euman

----- Original Message ----- 
From: "Brian Broker" <bkb at cnw.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: WIN API Mouse?


> 
> 
> Euman,
> 
> You do realize that the x and y passed to your onMouse routine are the 
> coordinates relative to the client area of your window, don't you?
> 
> -- Brian
> 
> Euman wrote:
> > Hello Win32 API Gurus
> > 
> > I have this function in my program (below) that return the mouse 
> > position
> > inside of the client area of my window and was wondering if there
> > was a mouse routine that did this automatically.
> > 
> > function GetMousePos(atom hwnd)
> > atom junk, x, y
> > 
> >     c_proc( GetCursorPos, {pt} )
> >     junk = c_func(xScreenToClient,{hwnd,pt})
> > 
> >     x = peek4s( pt )
> >     y = peek4s( pt + 4 )
> >     
> >     return {x,y} 
> > end function
> > 
> > Thanks
> > Euman
> > 
> > 
> 
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu