(加上类).perform(wm_keydown,vk_tab,0)

解决方案 »

  1.   

    请问如何让应用程序能接收到perform,sendmessage or postmessage函数发出的消息?如
    wm_keydown消息如何确定那个键被按下。
      

  2.   

    去看一下,北大版
    <windows程序设计>(第五版)
    Charles Petzold的经典之作
    windows程序员的必备之书。或者参考msdn:
    WM_KEYDOWN
    The WM_KEYDOWN message is posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the alt key is not pressed. WM_KEYDOWN 
    // 按下:nVirtKey
    nVirtKey = (int) wParam;    // virtual-key code 
    lKeyData = lParam;          // key data