本帖最后由 lfx99 于 2013-4-29 09:58 编辑 #include <GuiToolbar.au3>
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
Local Enum $idNew
$hGUI = GUICreate("test", 400, 300)
$hToolbar = _GUICtrlToolbar_Create($hGUI)
GUISetState()
_GUICtrlToolbar_AddBitmap($hToolbar, 1, -1, $IDB_STD_LARGE_COLOR)
_GUICtrlToolbar_AddButton($hToolbar, $idNew, $STD_FILENEW)
_GUICtrlToolbar_SetButtonText($hToolbar, $idNew, "新建")
GUICtrlCreateLabel("如何让鼠标滑过'新建'按钮,鼠标下方有文本提示",50,150)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|