listview怎么存放带"|" 的地址,已解决
本帖最后由 amxi 于 2011-12-27 09:06 编辑特别是电驴地址
ed2k://|file|%5B%E6%96%B0%E7%89%88%E2%80%98%E7%A5%9E%E9%AD%94%E2%80%99%5D.smdl_ob_20110415_0.12.0.exe|4667968|97bce76c72392776776854de485c2fc5|
基本上都带"|" ,但在listview中,取到"|",后面的全部就没有了..
怎么样让整个地址显示在listview中呢 不明白你的意思? 说实话也不是全理解楼主意思
看看这个函数Opt("GUIDataSeparatorChar"," ") 不是吧,这么明白了还不理解.
ed2k://|file|%5B%E6%96%B0%E7%89%88%E2%80%98%E7%A5%9E%E9%AD%94%E2%80%99%5D.smdl_ob_20110415_0.12.0.exe|4667968|97bce76c72392776776854de485c2fc5|
用如上地址举列. 用guictrlcreatelistviewitem 把这个地址放放入到一个listview中,但是在listview中显示到的只有:ed2k://,之后的地址不显示了 GUICtrlCreateListViewItem 本来就是按照"|"分割的
用这个GUICtrlCreateListView 才能显示全部 回复 5# 兔子先生
没看清楚问题吧,lz的意思,如何在listviewsubitem中添加带|的文本 #Include <GuiListView.au3>
_GUICtrlListView_SetItemText
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIDataSeparatorChar"," ")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 525, 336, 192, 124)
$ListView1 = GUICtrlCreateListView("1", 16, 16, 497, 281)
$ListView1_0 = GUICtrlCreateListViewItem("ed2k://|file|%5B%E6%96%B0%E7%89%88%E2%80%98%E7%A5%9E%E9%AD%94%E2%80%99%5D.smdl_ob_20110415_0.12.0.exe|4667968|97bce76c72392776776854de485c2fc5|", $ListView1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
EndSwitch
WEnd
其实就是改变分隔符非“|” 学习了,多谢分享。
页:
[1]