Вниз
Скачать: CL | DM;

Как определить нажатие кнопки мыши?   Найти похожие ветки 

 
SergeyZh   (2005-02-14 12:12) [0]

Уважаемые Господа програмисты!
Подскажите пожалуйста как мне определить нажата ли левая\правая кнопка мыши, причем не только над "родным" окном, но и на чужих окнах?


 
BiN ©   (2005-02-14 12:16) [1]

RTFM

The GetAsyncKeyState function works with mouse buttons. However, it checks on the state of the physical mouse buttons, not on the logical mouse buttons that the physical buttons are mapped to. For example, the call GetAsyncKeyState(VK_LBUTTON) always returns the state of the left physical mouse button, regardless of whether it is mapped to the left or right logical mouse button. You can determine the system"s current mapping of physical mouse buttons to logical mouse buttons by calling

GetSystemMetrics(SM_SWAPBUTTON)
which returns TRUE if the mouse buttons have been swapped.



(с) MSDN



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.027 c
14-1109932975
Danilka
2005-03-04 13:42
2005.03.27
Еще чуть-чуть про демократию.


3-1109320350
Steepe Wolf
2005-02-25 11:32
2005.03.27
MS SQL BDE или ADO ???


14-1110258293
Virgo_Style
2005-03-08 08:04
2005.03.27
8 марта


9-1104670923
Micker2
2005-01-02 16:02
2005.03.27
DelphiX.2d аркада.Спроверка столкновения


1-1110386776
Александер
2005-03-09 19:46
2005.03.27
Как нарисовать?




   Наверх