Координаты мыши за пределами окна (VC++)
От: driezer  
Дата: 20.12.03 04:52
Оценка:
Доброго времени!
Есть проблема: как узнать координаты мыши, если курсор находится за пределами окна приложения (напрмер на десктопе).
Спасибо заранее..

20.12.03 15:22: Перенесено модератором из 'C/C++' — ПК
Re: Координаты мыши за пределами окна (VC++)
От: sercher Украина  
Дата: 20.12.03 06:35
Оценка:
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.
Re: Координаты мыши за пределами окна (VC++)
От: kiamor  
Дата: 20.12.03 07:13
Оценка:
Здравствуйте, driezer.

GetMessagePos
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.