JScript, You could use my GUIExtender UDF to do something like this:
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>
#include <GUIExtender.au3>
$hGUI = GUICreate("Test", 500, 500)
GUISetState()
$hMenu = GUICreate("Menu", 480, 40, 10, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI)
_GUIExtender_Init($hMenu)
$iSection = _GUIExtender_Section_Start($hMenu, 0, 30)
$cButton_1 = GUICtrlCreateButton("Button 1", 0, 0, 80, 30)
$cButton_2 = GUICtrlCreateButton("Button 2", 80, 0, 80, 30)
$cButton_3 = GUICtrlCreateButton("Button 3", 160, 0, 80, 30)
$cButton_4 = GUICtrlCreateButton("Button 4", 240, 0, 80, 30)
$cButton_5 = GUICtrlCreateButton("Button 5", 320, 0, 80, 30)
$cButton_6 = GUICtrlCreateButton("Button 6", 400, 0, 80, 30)
_GUIExtender_Section_End($hMenu)
_GUIExtender_Section_Start($hMenu, 30, 10)
_GUIExtender_Section_Action($hMenu, $iSection, "", "", 0, 30, 480, 10, 1)
_GUIExtender_Section_End($hMenu)
_GUIExtender_Section_Extend($hMenu, $iSection, False)
GUISetState()
While 1
$iMsg = GUIGetMsg()
Switch $iMsg
Case $GUI_EVENT_CLOSE
Exit
Case $cButton_1 To $cButton_6
MsgBox($MB_SYSTEMMODAL, "Clicked", "You clicked Button " & $iMsg - $cButton_1 + 1)
EndSwitch
_GUIExtender_Action($hMenu, $iMsg)
WEnd
Any use? M23