windows 字元訊息——WM_CHAR
WM_CHAR
主要用於鍵盤字元按下的訊息,A-Z
#define WM_CHAR 0x0102
Parameters
- wParam
The character code of the key.
字元對應的ASCII值
- lParam
The repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table.
Bits Meaning
指示按鍵狀態資訊,32位。
0-15 The repeat count for the current message. The value is the number of times the keystroke is autorepeated as a result of the user holding down the key. If the keystroke is held long enough, multiple messages are sent. However, the repeat count is not cumulative.
低16位表示按鍵重複次數,當長按某一按鍵時,多次觸發訊息
16-23 The scan code. The value depends on the OEM.
OEM掃描碼是鍵盤傳送的碼值,由於此域是裝置相關的,因而此值往往被忽略。
24 Indicates 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.
擴充套件鍵標誌在有Alt鍵(或Ctrl鍵)按下時為1,否則為0
25-28 Reserved; do not use.
系統保留
29 The context code. The value is 1 if the ALT key is held down while the key is pressed; otherwise, the value is 0.
標誌Alt鍵是否保持按下
30 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.
訊息傳送時,鍵盤的前一個狀態,WM_SYSKEYDOWN訊息該值一直為0
31 The transition state. The value is 1 if the key is being released, or it is 0 if the key is being pressed.
轉換狀態。保持釋放時為1,保持按壓時為0
相關文章
- Windows訊息Windows
- Windows訊息大全Windows
- Windows訊息鉤取Windows
- windows 訊息斷點Windows斷點
- Windows訊息機制概述Windows
- WINDOWS訊息說明 (轉)Windows
- 7- Windows訊息鉤取Windows
- 簡析Windows訊息機制Windows
- windows訊息機制與例項Windows
- 常用Windows訊息、常量命名參考Windows
- Windows訊息機制初談 (轉)Windows
- windows10怎麼關閉通知欄訊息|windows10通知欄訊息關閉的方法Windows
- Windows訊息鉤取(簡單DLL注入)Windows
- 使用Windows訊息控制Winamp(VB) (轉)Windows
- 使用Windows訊息控制Winamp(Delphi) (轉)Windows
- 截獲與管理Windows的訊息 (轉)Windows
- 在 Windows 上搭建 MQTT 訊息伺服器WindowsMQQT伺服器
- WINDOWS訊息佇列管理的工具--QueueExplorerWindows佇列
- RocketMQ 訊息整合:多型別業務訊息-普通訊息MQ多型型別
- WIN7環境使用 windows訊息列隊Win7Windows
- 3-Windows程式設計 -視窗與訊息Windows程式設計
- Windows應用程式的訊息處理機制Windows
- Delphi裡的Windows訊息(可查MSDN指定位置)Windows
- RocketMQ 訊息整合:多型別業務訊息——定時訊息MQ多型型別
- 訊息機制篇——初識訊息與訊息佇列佇列
- 解析 RocketMQ 業務訊息——“事務訊息”MQ
- 解析 RocketMQ 業務訊息--“順序訊息”MQ
- 自定義訊息獲取訊息(轉)
- Windows 10正式版Skype訊息應用曝光Windows
- 好訊息:Windows 10 Mobile迎來RedStone 14291更新Windows
- 利用redis的hash結構搭建訊息服務(發訊息,訂閱訊息,消費訊息,退訂)Redis
- RocketMQ 原理:訊息儲存、高可用、訊息重試、訊息冪等性MQ
- 訊息中介軟體—RocketMQ訊息消費(三)(訊息消費重試)MQ
- 訊息中介軟體—RocketMQ訊息傳送MQ
- MQTT-保留訊息和遺囑訊息MQQT
- 自定義訊息和對訊息的理解
- SQLSTATE 訊息SQL
- vue---元件間傳遞訊息(父子傳遞訊息,兄弟傳遞訊息)Vue元件