koda 里面就可以弄好的.#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 413, 305, 302, 218)
$Button1 = GUICtrlCreateButton("Button1", 64, 64, 89, 41)
$Button1context = GUICtrlCreateContextMenu($Button1)
$MenuItem3 = GUICtrlCreateMenu("MenuItem3", $Button1context)
$MenuItem4 = GUICtrlCreateMenu("MenuItem4", $MenuItem3)
$MenuItem5 = GUICtrlCreateMenuItem("MenuItem5", $MenuItem4)
$MenuItem2 = GUICtrlCreateMenu("MenuItem2", $Button1context)
$MenuItem6 = GUICtrlCreateMenuItem("MenuItem6", $MenuItem2)
$MenuItem1 = GUICtrlCreateMenuItem("MenuItem1", $Button1context)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|