我在为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:0x00011D00
和0x00011D03
但他们发送了这样的废话:
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