Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2006.12.17;
Скачать: [xml.tar.bz2];

Вниз

Как на API будет "если зажат Shift"?   Найти похожие ветки 

 
Creative   (2006-11-30 13:41) [0]

Собственно сабж.
Нужно описать сообщение onMouseMove при зажатом шифте.


 
Creative   (2006-11-30 13:43) [1]

Дополнительный вопрос: как написать, какая при этом зажата мышь - левая или правая?


 
Dmitrij_K   (2006-11-30 13:45) [2]

GetKeyState()


 
Creative   (2006-11-30 14:20) [3]

Второй вопрос остается в силе, как в описании WM_MouseMove написать "если зажата правая/левая мышь"?


 
Eraser ©   (2006-11-30 14:26) [4]

> [0] Creative   (30.11.06 13:41)

так определись в onMouseMove или в WM_MouseMove.
 if ssShift in Shift then


 
Creative   (2006-11-30 14:42) [5]

в WM_MouseMove!
Я ведь не могу заголовок ветки переделать теперь :-(


 
Eraser ©   (2006-11-30 14:44) [6]

[2].


 
tesseract ©   (2006-11-30 15:43) [7]

The GetKeyState function can be used to check the down state of the following virtual keys:

VK_CONTROL VK_RCONTROL
VK_LCONTROL VK_RMENU
VK_LSHIFT VK_RSHIFT
VK_LMENU VK_SHIFT
VK_MENU  
The key status returned from this function changes as a specified thread reads key messages from its message queue. The status does not reflect the interrupt-level state associated with the hardware. Use the GetAsyncKeyState function to retrieve that information.

An application calls GetKeyState in response to a keyboard-input message. This function retrieves the state of the key when the input message was generated.


 
Sapersky   (2006-11-30 18:57) [8]

WM_MOUSEMOVE  
fwKeys = wParam;        // key flags
xPos = LOWORD(lParam);  // horizontal position of cursor
yPos = HIWORD(lParam);  // vertical position of cursor


Parameters

fwKeys

Value of wParam. Indicates whether various virtual keys are down. This parameter can be any combination of the following values:

Value Description
MK_CONTROL Set if the CTRL key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the SHIFT key is down.



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2006.12.17;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.164 c
4-1155022476
shake
2006-08-08 11:34
2006.12.17
завершение процесса


8-1146557385
zoltan
2006-05-02 12:09
2006.12.17
Как найти площадь фигуры произвольной формы


2-1164548349
Виталий Гаврилов
2006-11-26 16:39
2006.12.17
отправки E-mail c использованием почтовой программы


2-1164830603
бегинка
2006-11-29 23:03
2006.12.17
делфи и флеш


15-1164537517
Колдун
2006-11-26 13:38
2006.12.17
Панели инструментов





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский