procedure TFormServerMain.AppEventsActivate(Sender: TObject);
begin
{$IFNDEF WIN32}
if Screen.ActiveForm <> nil then Screen.ActiveForm.BringToFront;
{$ENDIF}
end;
//点Form的最小化按纽时隐藏
procedure TFormServerMain.AppEventsMinimize(Sender: TObject);
begin
{$IFDEF WIN32}
if NewStyleControls then ShowWindow(Application.Handle, SW_HIDE);
{$ENDIF}
end;
procedure TFormServerMain.AppEventsRestore(Sender: TObject);
begin
{$IFDEF WIN32}
if NewStyleControls then ShowWindow(Application.Handle, SW_SHOW);
{$ENDIF}
end;
//弹出
procedure TFormServerMain.TrayIconDblClick(Sender: TObject);
begin
Application.Restore;
end;