...<br>public<br> procedure WMhotkeyhandle(var msg:Tmessage);message wm_hotkey;<br>...<br>var<br> hotkeyid:integer;<br> ifhide:boolean;<br>implementation<br>...<br>procedure TForm1.FormCreate(Sender: TObject);<br>... <br> ifhide := false;<br> hotkeyid := GlobalAddAtom('My HotKey')-$C000;<br> registerhotkey(handle,hotkeyid,mod_control or mod_alt,$4D);<br>//设定快捷键为Alt+Ctrl+M<br>...<br>procedure TForm1.FormHide(Sender: TObject);<br>...<br> ifhide := true;<br>...<br>procedure TForm1.Wmhotkeyhandle(var msg:Tmessage);<br>begin<br> if (msg.LParamHi=$4D) and (msg.lparamLo=mod_control or mod_alt) then<br> begin<br> msg.Result:=1;<br> if ifhide then begin<br> application.Restore;<br> ifhide := false;<br> end;<br> end;<br>end;<br>...<br><br>还有问题吗?<br><br><br><br> beta