Главная страница
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.032 c
9-1105152143
fate
2005-01-08 05:42
2005.03.27
Оцените пожалуйста


1-1110789480
Max Zyuzin
2005-03-14 11:38
2005.03.27
StatusBar с прогрессом


3-1109666951
Топпер
2005-03-01 11:49
2005.03.27
IBExpert глюк или фича


9-1104334185
-=SS=-
2004-12-29 18:29
2005.03.27
GLScene освещение


14-1110452824
1008
2005-03-10 14:07
2005.03.27
Есть ли у Mac и Unix что-то общее?