0

我在为 postmessage 创建 lparam 时遇到了麻烦。我知道应用程序得到这样的密钥:

WM_KEYDOWN nVirtKey: VK_CONTROL cRepeat:1 ScanCode: 1D fExtended:0 fAltDown:0 fRepeat:0 fUp:0

WM_KEYDOWN nVirtKey: VK_LEFT cRepeat:1 ScanCode: 4B fExtended:1 fAltDown:0 fRepeat:0 fUp:0

WM_UP nVirtKey: VK_LEFT cRepeat:1 ScanCode: 4B fExtended:1 fAltDown:0 fRepeat:1 fUp:1

WM_UP nVirtKey: VK_CONTROL cRepeat:1 ScanCode: 1D fExtended:0 fAltDown:0 fRepeat:1 fUp:1

你能告诉我我应该如何创建那个 lparam 吗?我读过msdn,我做了这样的lparam:0x00011D000x00011D03他们发送这样的废话:

WM_KEYDOWN nVirtKey: VK_CONTROL cRepeat:7424 ScanCode: 01 fExtended:0 fAltDown:0 fRepeat:0 fUp:0

WM_KEYDOWN nVirtKey: VK_LEFT cRepeat:1 ScanCode: 00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0

WM_UP nVirtKey: VK_LEFT cRepeat:1 ScanCode: 00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0

WM_UP nVirtKey: VK_CONTROL cRepeat:7427 ScanCode: 01 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
4

0 回答 0