WIN API Mouse?

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

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     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu