我附上代码,我要的就是定部的效果,可是_GUICtrlToolbar_AddButton只能在_GUICtrlToolbar_Create 上才能显示,_GUICtrlToolbar_Create 只能设置在顶部,我想放到GUI界面的中间,应该怎么做#include <GuiToolbar.au3>
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
Global $hToolbar, $iMemo
Global $iItem
Global Enum $idNew = 1000, $idOpen, $idSave, $idHelp
Local $hGUI, $aSize
$hGUI = GUICreate("Toolbar", 600, 400)
$hToolbar = _GUICtrlToolbar_Create ($hGUI)
$aSize = _GUICtrlToolbar_GetMaxSize ($hToolbar)
GUISetState()
_GUICtrlToolbar_AddButton ($hToolbar, "","")
_GUICtrlToolbar_AddButton ($hToolbar, "", $STD_FILEOPEN)
_GUICtrlToolbar_AddButton ($hToolbar, "", $STD_FILESAVE)
_GUICtrlToolbar_CommandToIndex($hToolbar,"")
_GUICtrlToolbar_AddButton ($hToolbar, $idHelp, $STD_HELP)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
|