Главная страница
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.057 c
4-1108140456
Artur
2005-02-11 19:47
2005.03.27
Буфер обмена


8-1102629649
maxXP
2004-12-10 01:00
2005.03.27
Можно ли получить график в картинку из компоненты tchart???


3-1109784081
Arnold
2005-03-02 20:21
2005.03.27
Как узнать количество записей в таблице??


3-1109601566
Alexander1
2005-02-28 17:39
2005.03.27
Создание БД (программно)


1-1110998105
Alex Romanskiy
2005-03-16 21:35
2005.03.27
GIF в Image