Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.03.27;
Скачать: 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 вся ветка

Текущий архив: 2005.03.27;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.025 c
14-1110195108
MU
2005-03-07 14:31
2005.03.27
FreeVCS ->JediVCS


11-1093308217
Ripper
2004-08-24 04:43
2005.03.27
Узнать выделеный элемент TreeView


14-1110383090
Piter
2005-03-09 18:44
2005.03.27
Outpost блокирует транзитные пакеты


1-1110615384
Timofey
2005-03-12 11:16
2005.03.27
верхний/нижний индекс в TLabel


14-1110287513
iZEN
2005-03-08 16:11
2005.03.27
Монитор Электрик - офигительно приятная система.