L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-18 #2 var KeyState: TKeyboardState; begin GetKeyboardState(KetState); if KeyState[VK_CAPITAL]=1 then //按下 end;
var KeyState: TKeyboardState; begin GetKeyboardState(KetState); if KeyState[VK_CAPITAL]=1 then //按下 end;
X xjtu_liuxd Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-19 #4 你可以捕捉消息WM_KEYDOWN,在这个消息函数里面处理,当按下的键是VK_CAPITAL时,触发你的处理程序!