if FAdded then begin Shell_NotifyIcon(NIM_MODIFY, @FIconData); end else begin Shell_NotifyIcon(NIM_ADD, @FIconData); FAdded:=true; end;
Shell_NotifyIcon(NIM_DELETE, @FIconData); FAdded:=false;