MSG类型结构有两个参数:WPARAM,LPARAM<br>wParam是虚键码,lParam是指定键盘状态,重复次数等<br>wParam=vk_Shift即可。<br><br>在DEPHI里面,有事件方法:<br>procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;<br> Shift: TShiftState);<br>begin<br> if (Shift=[ssShift]+[ssctrl]) then<br> showmessage('press shift and ctrl !');<br>end;