Доброго времени!
Есть проблема: как узнать координаты мыши, если курсор находится за пределами окна приложения (напрмер на десктопе).
Спасибо заранее..
20.12.03 15:22: Перенесено модератором из 'C/C++' — ПК
BOOL GetCursorPos(
LPPOINT lpPoint // cursor position
);
Parameters
lpPoint
[out] Pointer to a POINT structure that receives the screen coordinates of the cursor.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The cursor position is always specified in screen coordinates and is not affected by the mapping mode of the window that contains the cursor.
The calling process must have WINSTA_READATTRIBUTES access to the window station.
Здравствуйте, driezer.
GetMessagePos