找回密码
 加入
搜索
查看: 2615|回复: 2

[GUI管理] GUICtrlCreateList 怎么强制换行

[复制链接]
发表于 2013-8-18 16:06:55 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 405, 294, 302, 218)
$ListView1 = GUICtrlCreateList("", 32, 32, 211, 175,BitOR($LBS_NOTIFY, $LBS_SORT, $WS_HSCROLL, $WS_VSCROLL), 0)
_GUICtrlListBox_SetItemHeight($ListView1, 30)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

_GUICtrlListBox_InsertString($ListView1, 'test'&@crlf&'测试', -1)
_GUICtrlListBox_InsertString($ListView1, 'test(换2行显示第一个无效求方法!)测试', -1)
_GUICtrlListBox_UpdateHScroll($ListView1)
_GUICtrlListBox_SetCurSel($ListView1, _GUICtrlListBox_GetCount($ListView1) - 1)


While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
上面是例子,求方法!
 楼主| 发表于 2013-8-18 16:14:54 | 显示全部楼层

放个图片首页显示下。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2013-8-20 08:15:34 | 显示全部楼层
$ES_WANTRETURN
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-4 12:38 , Processed in 0.073983 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表