屏蔽组合键[Ctrl+N]
时间:2011-05-05 来源:UfoID
……
const
_KeyPressMask=$80000000;
implementation
……
procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
if ((Msg.lParam and _KeyPressMask)=0) and (GetKeyState(vk_control)<0) and (Msg.wParam = Ord('N')) then
begin
Handled := True;
end;
end;
……
相关阅读 更多 +
排行榜 更多 +