Главная страница
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.028 c
11-1093291474
=Sniper=
2004-08-24 00:04
2005.03.27
Вопрос про подсветку в Rich Edit (прикладываю полный проект)


1-1110905825
alex2005
2005-03-15 19:57
2005.03.27
Связь и передача данных из программы в Excell


14-1109869953
Тимур
2005-03-03 20:12
2005.03.27
Снятие скриншотов кнопкой "Prt Sc SysRq"


14-1109945890
Vlad Oshin
2005-03-04 17:18
2005.03.27
В предверии 8 марта. Нет ли у кого красивых поздравлялок?


9-1103994753
Zeqfreed
2004-12-25 20:12
2005.03.27
png...