编程论坛's Archiver

zhmy725 发表于 2006-8-31 16:22

如何用treeview做个树型菜单呀

如何用treeview做个树型菜单呀?那个treevieeitem 我一直找不到在哪里

潇洒老乌龟 发表于 2006-9-2 22:03

我没明白你的意思.请说仔细点.

ヤ順祺冄繎ヤ 发表于 2006-9-8 12:39

楼主的意思可能就是说<BR><BR>怎么用TREE控件!<BR><BR>树形控件可以找一些实例代码来做参考!!<BR><BR>偶的理解是TREE控件在这些控件中是比较复杂的一个!<BR><BR>[em09][em09]

huixiong9 发表于 2007-5-29 16:11

[em01]我也想知道啊,谁能指导一下啊?

路過 发表于 2007-5-30 10:44

  long ll_handle_1,ll_handle_2,ll_handle_3,ll_handle_4<BR>TreeViewItem ltv_item_1,ltv_item_2,ltv_item_3,ltv_item_4<BR> <BR><BR> //在樹形中插入一個項目<BR> treeviewname.InsertItemSort ( handleparent, label, pictureindex )<BR>    ll_handle_1 = This.InsertItemsort(<FONT color=#ff3300>0</FONT>,ls_province_no + ' ' +ls_province_nm , 1)<BR>    <BR>    This.Getitem(ll_handle_1,ltv_item_1)<BR>    ltv_item_1.data = ls_province_no<BR>    //顯示第一張圖片<BR>    ltv_item_1.pictureindex = 1<BR>    //被選中時顯示第二張圖片<BR>    ltv_item_1.selectedpictureindex = 2<BR>    this.setitem(ll_handle_1,ltv_item_1)<BR>第二個樹柄:<BR>ll_handle_2 = this.insertitemsort(<FONT color=#f73809>ll_handle_1</FONT>,ls_county_no + ' ' + ls_county_nm,1)<BR>        this.getitem(ll_handle_2,ltv_item_2)<BR>        ltv_item_2.data = ls_county_no<BR>        ltv_item_2.pictureindex = 1<BR>        ltv_item_2.selectedpictureindex =2<BR>        this.setitem(ll_handle_2,ltv_item_2) .......以此類推。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.