procedure WMSysCommand(var Message:TMessage);
message WM_SYSCOMMAND;
// 最小化窗口时,进入托盘 并从任务栏不可见
procedure TfmAccount.WMSysCommand(var Message:TMessage);
begin
if (Message.WParam = SC_ICON) then
begin
Visible := false;
Shell_NotifyIcon(NIM_ADD, @MyTrayIcon );
end
else
begin
DefWindowProc(Handle,Message.Msg,Message.WParam,message.LParam);
end;
end;
// 只是在双击时候 显示应用窗口
procedure TfmAccount.WMMyTrayIconCallback( var Msg:TMessage );
var
CursorPos : TPoint;
begin