WHY?
智商无下限 2002-11-10 02:54:40 我定义了一个系统热键,想在热键被按下时使我的程序出现,以下是我的做法,不知道错在那里了!
private
procedure hotkey(var msg:tmessage);message wm_hotkey;
......
procedure TForm1.FormCreate(Sender: TObject);
begin
registerhotkey(handle,hotkeyid,MOD_control,$41);
end;
procedure hotkey(var msg:tmessage);
begin
if (msg.LParamHi=$41) and (msg.lparamLo=mod_control) then
showmessage('sdfsdf');//这个可以出现
showwindow(handle,‘最大化的那个语句,我望了’);//这个却不对!为什么呀?
end;
......
我没分了!