Cursor pos

This is a discussion on Cursor pos within the Windows Programming forums, part of the Platform Specific Boards category; Hi there! Sorry fo a bit silly question but... Is there any function that can get cursor position in windows ...

  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
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21