CoordinateSystemConversion.h
1 #pragma once 2 3 #define WIN32_LEAN_AND_MEAN 4 #include <Windows.h> 5 6 namespace convert 7 { 8 // Converts a given point from multi-monitor coordinate system to the one relative to HWND 9 inline POINT FromSystemToWindow(HWND window, POINT p) 10 { 11 ScreenToClient(window, &p); 12 return p; 13 } 14 }