WEnn mein Programm minimiert wird, will ich dass es ein Ico in der Systray gezeigt wird, und das Programm selber versteckt.
Habe es anhand eines Beispiels so gelöst:
Code: Alles auswählen
If IsIconic_(WindowID(#mainwin)) = #True And Minimized = #False
Minimized = #True
HideWindow(#mainwin,#True)
AddSysTrayIcon(#SysIcon,WindowID(#mainwin),Icon)
SysTrayIconToolTip(#SysIcon,"Anti-Ripper")
ElseIf IsIconic_(WindowID(#mainwin)) = #False And Minimized = #True
Minimized = #False
RemoveSysTrayIcon(#SysIcon)
EndIf

Danke

Chris
