ตามลิงค์
[You must be registered and logged in to see this link.]
พอพับหน้าต่าง minimize แล้วไปคลิก icon
icon มันหายครับ จะแก้ไขยังไง
[You must be registered and logged in to see this link.]
พอพับหน้าต่าง minimize แล้วไปคลิก icon
icon มันหายครับ จะแก้ไขยังไง
- Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 1)
TraySetOnEvent(-8, "PSsixTary")
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 351, 237, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 208, 32, 75, 25)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_EVENT_MINIMIZE
GUISetState(@SW_HIDE)
TraySetState(1)
TrayTip("ย่อโปรแกรม", "คลิกเพื่อเปิดอีกครั้ง", 6)
Case $Button1
EndSwitch
WEnd
Func PSsixTary()
GUISetState(@SW_SHOW)
TraySetState(2)
EndFunc