Thread: GetCursorPos

  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