จะเพิ่มคำสั่ง ตรงที่วงสีแดงไว้ ยังไงครับ
2 posters
เราจะเพิ่มคำสั่ง ตรงไอคอน ยังไงครับ
asokura- PSsix Member High Class
จำนวนข้อความ : 72
ความนิยม : 11
เข้าร่วมเมื่อ : 03/09/2011
- Post n°1
เราจะเพิ่มคำสั่ง ตรงไอคอน ยังไงครับ
จะเพิ่มคำสั่ง ตรงที่วงสีแดงไว้ ยังไงครับ
POS- PSsix
-
จำนวนข้อความ : 1152
ความนิยม : 326
เข้าร่วมเมื่อ : 19/07/2010
- Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("TrayMenuMode",3)
$111 = TrayCreateItem("xxxxx")
$222 = TrayCreateItem("Exit")
TraySetState()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 293, 168, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 192, 16, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
exit
EndSwitch
$msg = TrayGetMsg()
Switch $msg
Case $111
MsgBox(0,"","")
Case $222
exit
EndSwitch
WEnd
asokura- PSsix Member High Class
จำนวนข้อความ : 72
ความนิยม : 11
เข้าร่วมเมื่อ : 03/09/2011
ขอบคุณครับ
|
|