1. WIN API Mouse?
- Posted by Euman <euman at bellsouth.net> May 02, 2001
- 516 views
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
2. Re: WIN API Mouse?
- Posted by Euman <euman at bellsouth.net> May 03, 2001
- 479 views
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 > > > > > > > > > >