TreeView如何让子项不继承父项的图标???
本帖最后由 alice148 于 2012-1-6 11:10 编辑父项加载了图标,子项没有加载。但子项的的图标和父项一样。
如何让子项没有图标,只要父项有就可以了、、、
谢谢二楼的朋友,可我最主要的问题是如何让子项没有图标
#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$TreeView1 = GUICtrlCreateTreeView(144, 32, 225, 361)
$TreeView1_0 = GUICtrlCreateTreeViewItem("123", $TreeView1)
GUICtrlSetImage($TreeView1_0, 'SHELL32.dll', 2)
$TreeView1_1 = GUICtrlCreateTreeViewItem("456", $TreeView1_0)
$TreeView1_2 = GUICtrlCreateTreeViewItem("5667", $TreeView1_1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$TreeView1 = GUICtrlCreateTreeView(144, 32, 225, 361)
GUICtrlSetImage($TreeView1, 'SHELL32.dll', 2)
$TreeView1_0 = GUICtrlCreateTreeViewItem("123", $TreeView1)
GUICtrlSetImage($TreeView1_0, 'SHELL32.dll', 3)
$TreeView1_1 = GUICtrlCreateTreeViewItem("456", $TreeView1_0)
GUICtrlSetImage($TreeView1_1, 'SHELL32.dll', 4)
$TreeView1_2 = GUICtrlCreateTreeViewItem("5667", $TreeView1_1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 学习了!!谢谢!!
Ycxw2008 发表于 2012-1-6 06:11 http://www.autoitx.com/images/common/back.gif
如何让子项没有图标,只要父项有就可以了、、
Ycxw2008 发表于 2012-1-6 06:11 http://www.autoitx.com/images/common/back.gif
如何让子项没有图标,只要父项有就可以了、、
5楼问题估计难以实现,子承父业,遗传基因是自然保留的,除非像2楼一样,强行对它们干预。 回复 2# Ycxw2008
高手。支持。 谢谢二楼分享 listviewitem如何居中
页:
[1]