pb窗口中用ENTER键切换焦点

pb窗口中用ENTER键切换焦点

1.定义外部函数

Subroutine keybd_event(int bVk,int bScan,ulong dwFlags,ulong dwExtraInfo) LIBRARY "user32.dll"

2.在窗口的Key事件中写下如下代码

IF key = KeyEnter! THEN

          keybd_event(9,0,0,0)

          keybd_event(9,0,2,0)

 ENd IF

你可能感兴趣的:(窗口,tab,enter,焦点,休闲)