首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

keybd_event有关问题

2011-12-29 
keybd_event问题请问keybd_event中的DEYEVENTF_KEYUP的值是什么?谢谢![解决办法]你这是Microsoft Windows

keybd_event问题
请问keybd_event中的DEYEVENTF_KEYUP的值是什么?谢谢!

[解决办法]
你这是Microsoft Windows CE 5.0 的内容.

keybd_eventSee Also
EnableHardwareKeyboard | GetAsyncKeyState | GetKeyState | MapVirtualKey | PostKeybdMessage | Keyboard Functions

Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Uibase.lib.
This function synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message.

VOID keybd_event(
BYTE bVk,
BYTE bScan,
DWORD dwFlags,
DWORD dwExtraInfo
);
Parameters
bVk
[in] Specifies a virtual-key code. The code must be a value in the range 1 to 254. For a list of virtual-key codes, see Virtual-Key Codes.
bScan
[in] Specifies a hardware scan code for the key.
dwFlags
[in] Specifies various aspects of function operation. An application can use any combination of the following predefined constant values to set the flags. Value Description
KEYEVENTF_EXTENDEDKEY If specified, the scan code will be treated as an extended key by giving it a prefix byte having the value 0xE0 (224).
KEYEVENTF_KEYUP If specified, the key is being released. If not specified, the key is being pressed.
KEYEVENTF_SILENT If specified, a keystroke is simulated, but no clicking sound is made.

dwExtraInfo
[in] Specifies an additional 32-bit value associated with the keystroke.
[解决办法]
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\WinUser.h(5066):#define KEYEVENTF_KEYUP 0x0002

热点排行