|
项目描述: |
Everyone knows the new menu-like left pane view\'s in IE4. But did you know that this is only a extended TreeView? You can do this by using CUSTONDRAW notification in the new from CTreeCtrl derived class. I called it CTreeMenu. To do this is quite easy. See an code extract below.
But note: This works only with the extended TreeCtrl that comes with IE4. You can use my wrapper class or the one from Luis Barreira IE4 Classes. This should also work, but I didn\'t test it. Also on Codeguru\'s Webpage.
I wrote a class, that makes the handling pretty easy. Included are a Button to close the view and some Bevel stuff to be uptodate with the Windows style. There is also a self RegisterClass() function to use as a CustomControl on Dialog Templates.
The Frame use the SizingControlBar from Cristi Posea also found here on Codeguru\'s Webpage.
像IE 4中 “最喜爱的/历史/频道”那样的控件
每个人都知道IE4左侧的新菜单。但是你知道吗,这只是一个扩展的TreeView控件?You can do this by using CUSTONDRAW notification in the new from CTreeCtrl derived class.我称它为CTreeMenu菜单。这很容易就可以做到。看一下下面的代码。
但是注意:这个工作只能通过IE4使用扩展的TreeCtrl。你可以使用我包装的类或者Luis Barreira IE4类。这个也行,但我没测试过。它也在Codeguru的网页上。
我编写了一个类,使得处理非常简单。包括一个按钮来关闭视图和一些材料来更新窗口样式。有一个使用对话面板的用户控件的自我注册函数RegisterClass()。
在Codeguru的网页中也发现了使用来自于Cristi Posea的SizingControlBar的框架。
来源: http://www.codeguru.com/treeview/treemenu.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
TreeMenuDemo |
 1.0  |
2004-04-18 |
下载 |
|
|