1. RE: WIN API Mouse?
- Posted by Brian Broker <bkb at cnw.com> May 03, 2001
- 442 views
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 > >