本帖最后由 maker 于 2009-10-24 23:39 编辑
没单集哪个图标?托盘?
托盘如下,不是托盘就是你代码有错误需要你发上来检查#Include <Constants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#NoTrayIcon
Opt("TrayMenuMode",1)
TraySetState()
TraySetClick(1)
$Form1 = GUICreate("Form1", 365, 285, 193, 115)
$Button1 = GUICtrlCreateButton("最小化", 120, 120, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_MINIMIZE)
EndSwitch
If TrayGetMsg() = $TRAY_EVENT_PRIMARYUP Then GUISetState(@SW_RESTORE)
WEnd
|