|
本帖最后由 zhongzijie 于 2011-2-14 20:26 编辑
;代码A能完全显示出文字
#include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)
Local $hGUI, $hProgress, $hButton, $Button, $progress, $hStatus,$hStatus2,$Msgbox
Local $aParts[1] = [-1];定义状态栏
$hGUI = GUICreate("为什么状态栏有些显示不够很长啊", 1200, 30)
$hStatus = _GUICtrlStatusBar_Create ($hGUI)
GUISetState()
_GUICtrlStatusBar_SetParts ($hStatus, $aParts)
;_GUICtrlStatusBar_SetText ($hStatus, @TAB&"看见我:[看见我看见我] 看见我:[88] 看见我:[88] 看见我:[88] 看见我:[88] 看见我:[888888=88,88,88,88,88,88,88,88,88,88,88,88,88,88,] 看见我:[88] 看见我:[88] 看见我:[88]", 0)
_GUICtrlStatusBar_SetText ($hStatus, @TAB&"[开始]看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我[结束]", 0)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
While 1
$Msgbox=GUIGetMsg()
Switch $Msgbox
Case $GUI_EVENT_CLOSE
GUIDelete()
Exit
EndSwitch
WEnd
;代码B不能完全显示出文字
#include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>
Opt('MustDeclareVars', 1)
Local $hGUI, $hProgress, $hButton, $Button, $progress, $hStatus,$hStatus2,$Msgbox
Local $aParts[1] = [-1];定义状态栏
$hGUI = GUICreate("为什么状态栏有些显示不够很长啊", 1200, 30)
$hStatus = _GUICtrlStatusBar_Create ($hGUI)
GUISetState()
_GUICtrlStatusBar_SetParts ($hStatus, $aParts)
_GUICtrlStatusBar_SetText ($hStatus, @TAB&"看见我:[看见我看见我] 看见我:[88] 看见我:[88] 看见我:[88] 看见我:[88] 看见我:[888888=88,88,88,88,88,88,88,88,88,88,88,88,88,88,] 看见我:[88] 看见我:[88] 看见我:[88]", 0)
;_GUICtrlStatusBar_SetText ($hStatus, @TAB&"[开始]看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我看见我[结束]", 0)
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
While 1
$Msgbox=GUIGetMsg()
Switch $Msgbox
Case $GUI_EVENT_CLOSE
GUIDelete()
Exit
EndSwitch
WEnd |
|