Thread: Cursor pos

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    20

    Cursor pos

    Hi there! Sorry fo a bit silly question but... Is there any function that can get cursor position in windows (not in screen) coordinates? (Win32 API) Thnx, and sorry for my english skils. C ya

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    GetCursorPos() gets the cursor position in screen coordinates, but you can use ScreenToClient() to convert it to client coordinates.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    20
    Thnx it very useful to me!

Popular pages Recent additions subscribe to a feed