动态添加tree控件,高手进! 急!急! 做了3个抽屉,可以上下滑动,现在想在每一个抽屉下添加一个tree,改如何实现?谁有自己重绘的tree的源代码? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 MFC的CTreeCtrl就行啊,可以动态Create出来并放到指定位置,MSDN上有例子。 自带tree可以显示1个button,一个checkbox,一个图标,一行文字。要更多功能请自绘,treeview支持custom draw比较好用。 自带的tree应该如何实现动态添加? // Assuming your window has a CTreeCtrl member named m_TreeCtrl, // you can create the tree control window with a child ID of ID_MYTREE // using a call like this: m_TreeCtrl.Create(WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES | TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_EDITLABELS, CRect(10, 10, 300, 100), this, ID_MYTREE); // The control will have the appropiate window styles, and the tree // control styles specified are those most commonly used. 3个tree添加成功了,怎样响应onsize()来改变大小?添加tree的时候tree的rect是固定的。 ODBC数据库连接问题! BYTE数组 怎么转化为字符串输出 流氓软件及反流氓软件的技术分析 向一个地址写一个16位的数,用哪个函数? 怎样在VC里实现精确计时? 急!如何列出所有已安装的程序? 用过GDI+的朋友们请进来把~~~~ 我都快急死了~~~ 一个调试的问题.请进来看看. 关于HID的一个问题 我发现用WriteFile写串(并)行口的速度非常慢(比c语言的bioscom,或内嵌汇编),有什么技巧吗?3-28 [散分]散分,不说什么了你懂的。。。 如何让一个dialog和一个Menu相关联?----小菜鸟求教
要更多功能请自绘,treeview支持custom draw比较好用。
// you can create the tree control window with a child ID of ID_MYTREE
// using a call like this:
m_TreeCtrl.Create(WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER
| TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES
| TVS_DISABLEDRAGDROP | TVS_NOTOOLTIPS | TVS_EDITLABELS,
CRect(10, 10, 300, 100), this, ID_MYTREE);
// The control will have the appropiate window styles, and the tree
// control styles specified are those most commonly used.