GetCursorPos

This is a discussion on GetCursorPos within the Windows Programming forums, part of the Platform Specific Boards category; GetCursorPos retrieves the position of the cursor relative to the screen, but I can't figure out how to get the ...

  1. #1
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269

    GetCursorPos

    GetCursorPos retrieves the position of the cursor relative to the screen, but I can't figure out how to get the coordinates relative to the window. Any ideas?

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    WindowFromPoint() / ScreenToClient()

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