检查一下key:==VK_INSERT;
        key:==VK_CONTROL;

解决方案 »

  1.   

    我试过: API中的
           GetKeyboardState()
            GetKeyState( )
      

  2.   

    The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer. BOOL GetKeyboardState(    PBYTE lpKeyState  // address of array to receive status data
       );
     ParameterslpKeyStatePoints to the 256-byte array that will receive the status data for each virtual key. ======================
     he GetKeyState function retrieves the status of the specified virtual key. The status specifies whether the key is up, down, or toggled (on, off ?alternating each time the key is pressed). SHORT GetKeyState(    int nVirtKey  // virtual-key code
       );
     
      

  3.   

    用这两个API函数很简单,每个键的状态就可知道