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

Вниз

Послать Shortcut   Найти похожие ветки 

 
Dude   (2003-07-29 17:57) [0]

Привет!
Как мне послать другному контролу Shortcut (например Ctrl+V - 16470), зная его (окна) handle?
Спасибо!


 
Yanis   (2003-07-29 18:04) [1]


SendMessage;


 
Dred2k   (2003-07-29 20:31) [2]

1. WM_KEYDOWN [Ctrl+F1]
2. ShortCutToKey [Ctrl+F1]
3. ShortCutToKey(....) + PostMessage(...Handle, WM_KEYDOWN, Key, ...);


 
Dude   (2003-07-29 21:56) [3]

>Yanis
А я думал по почте :)

>Dred2k
ShortCutToKey - я получаю Key и ShiftState. В справке говорят, мол в wParam надо передавать код клавиши. С этим я справлюсь :)
А в lParamHi - информацию из ShiftState. Так я не понял, как её туда (в lParamHi) засунуть?


 
Dred2k   (2003-07-29 22:42) [4]

> Dude (29.07.03 21:56)

Второй параметр - битовая маска. Разбирайся.


lKeyData

Value of lParam. Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table:

Value Description
0-15 Specifies the repeat count. The value is the number of times the keystroke is repeated as a result of the user holding down the key.
16-23 Specifies the scan code. The value depends on the original equipment manufacturer (OEM).
24 Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28 Reserved; do not use.
29 Specifies the context code. The value is always 0 for a WM_KEYDOWN message.
30 Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is 0 if the key is up.
31 Specifies the transition state. The value is always 0 for a WM_KEYDOWN message.




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

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

Наверх





Память: 0.45 MB
Время: 0.009 c
14-4107
Zacho
2003-09-12 22:44
2003.10.02
Как выйти из долговременной депрессии ?


1-3960
Vadim
2003-09-20 12:44
2003.10.02
Полупрозрачная форма


14-4099
Anna
2003-09-09 12:27
2003.10.02
---|Ветка была без названия|---


14-4092
Bones
2003-09-14 05:27
2003.10.02
Помогите найти драйвера под Creative


14-4121
Viktor Kushnir
2003-09-12 15:36
2003.10.02
Переустановка Винды





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский