Hello,
to set the mouse position via the API function SetCursorPos() in the engine window poperly (window mode), I need to know the position of the window. I'm using
window_pos for this.
However, when using SetCursorPos() the mouse is displaced by some pixels, because the caption area and the borders of the window are not considered (in my code).
Does somebody know how I can solve this?
Perhaps
sys_metrics() will do the trick (for calculating height and width of the window borders), but I don't know what system parameters are relevant for this.
Thanks