MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ScreenToWindow

Function ScreenToWindow

source/util.cpp:1785–1792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1783
1784
1785void ScreenToWindow(POINT &aPoint, HWND aHwnd)
1786// Convert screen coordinates to window coordinates (i.e. relative to the window's upper-left corner).
1787{
1788 RECT rect;
1789 GetWindowRect(aHwnd, &rect);
1790 aPoint.x -= rect.left;
1791 aPoint.y -= rect.top;
1792}
1793
1794
1795

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected