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

解决方案 »

  1.   

    keybd_event是什么,没见过,三方控件事件?
      

  2.   

    你这是Microsoft Windows CE 5.0 的内容.keybd_eventSee Also
    EnableHardwareKeyboard | GetAsyncKeyState | GetKeyState | MapVirtualKey | PostKeybdMessage | Keyboard FunctionsRequirements
    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.
      

  3.   

    楼上的:KEYEVENTF_KEYUP的值到底是多少?在哪里能查到?谢谢了
      

  4.   

    C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\WinUser.h(5066):#define KEYEVENTF_KEYUP       0x0002