全局快捷键(20分)

L

ldelphi

Unregistered / Unconfirmed
GUEST, unregistred user!
这是我的程序中的一个全局快捷键,意思为:当用户按了 Ctrl+C 时,显示 hi ;我想改为当用户按了 Alt+C 时,

显示 hi .应该怎样改?
if (msg.LParamLo=MOD_Control) and (msg.LParamHi=67) then
begin
ShowMessage('hi');
end;
 
if (msg.LParamLo=MOD_Alt) and (msg.LParamHi=67) then
begin
ShowMessage('hi');
end;
 
多人接受答案了。
 

Similar threads

回复
0
查看
689
不得闲
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
733
DelphiTeacher的专栏
D
D
回复
0
查看
585
DelphiTeacher的专栏
D
顶部