Вниз
Скачать: 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.023 c
3-1109673123
RavenD
2005-03-01 13:32
2005.03.27
Регистронезависимый поиск в русском MEMO?


14-1110441288
Inventor
2005-03-10 10:54
2005.03.27
Алгоритм составления расписания занятий в ВУЗЕ


1-1110765191
Viktop
2005-03-14 04:53
2005.03.27
Помогите с процедурой


3-1109362678
ali_tash
2005-02-25 23:17
2005.03.27
как войти в базу FireBird если не знаеш пароля ?


14-1110013533
clickmaker
2005-03-05 12:05
2005.03.27
Когда же наконец исчезнет Internal Server Error,




   Наверх