Вниз
Скачать: 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.028 c
1-1110493444
WST
2005-03-11 01:24
2005.03.27
И снова CheckBox


14-1110312734
Ukrainian
2005-03-08 23:12
2005.03.27
Украина. Кироваоградская обл.


1-1110639306
starmaster
2005-03-12 17:55
2005.03.27
Registry -> DWORD


4-1108178714
nickmas
2005-02-12 06:25
2005.03.27
Как убрать программу из трея?


1-1110900914
Руслана
2005-03-15 18:35
2005.03.27
Можно ли отловить такое событие...




   Наверх