###Function###
TraySetState

###Description###
Sets the state of the tray icon.

###Syntax###
TraySetState ( [flag = 1] )


###Parameters###
@@ParamTable@@
flag
	[optional] A combination of the following:
		$TRAY_ICONSTATE_SHOW (1) = Shows the tray icon (default)
		$TRAY_ICONSTATE_HIDE (2) = Destroys/Hides the tray icon
		$TRAY_ICONSTATE_FLASH (4) = Flashes the tray icon
		$TRAY_ICONSTATE_STOPFLASH (8) = Stops tray icon flashing
		$TRAY_ICONSTATE_RESET (16) = Resets the icon to the defaults (no flashing, default tip text)
	Constants are defined in TrayConstants.au3
@@End@@

###ReturnValue###
None.


###Remarks###
This function overrides the "TrayIconHide"-option and "#NoTrayIcon"-setting.
The normal and pause tray icon are NOT reset by this function!


###Related###
TrayItemSetState, TraySetIcon, TraySetPauseIcon


###Example###
@@IncludeExample@@
