15098.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>请看以下做法, 也可以做出来</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>请看以下做法, 也可以做出来</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:sephiroth@optimasoft.com.tw">Sephiroth</a> on July 02, 1999 at 09:45:41:<p>
In Reply to: <a href="15052.html">Re: 请教treeview</a> posted by 小吴 on July 01, 1999 at 08:45:29:<p>
要 Drag某一 Node在 TreeView之内, 我是在 DragDrop里面做, <br>先用一个变数记录 SelectedItem, 然后在 DragOver中运用 HitTest<br>改变 SelectedItem的值, 等 DragDrop事件被引发之后再把原来的 Node<br>删除, 加到 SelectedItem之后就可以了;<br>其实这只是 TreeView的一小部份功能, 做得好还可以跟档案总管一样,<br>除了 Move(Drag)之外, 我还做出了 Copy及 Link的功能, 不过我不<br>知道档案总管的 DragIcon是怎么做出来的, 连 Icon和 FileName <br>都可以一起 Drag...  
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 15098-->
</ul><!--end: 15098-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?