设为首页 加入收藏

TOP

C++MFC编程笔记day10 MF界面控件的使用2、属性页对话框、MFC线程(三)
2015-07-20 17:54:32 来源: 作者: 【 】 浏览:5
Tags:MFC 编程 笔记 day10 界面 控件 使用 属性 对话 线程
; } else { CDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CMFCtreeCtrlDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } void CMFCtreeCtrlDlg::initTreeCtrl() { m_ilNormal.Create(IDB_NORMAL,16,1,RGB(0,0,0)); m_tree.SetImageList(&m_ilNormal,LVSIL_NORMAL); HTREEITEM hroot=m_tree.InsertItem("根文件夹",0,1); HTREEITEM h1=m_tree.InsertItem("子文件夹1",0,1,hroot); HTREEITEM h2=m_tree.InsertItem("子文件夹2",0,1,hroot); HTREEITEM h3=m_tree.InsertItem("子文件夹3",0,1,hroot); HTREEITEM h4=m_tree.InsertItem("子文件夹4",0,1,hroot); HTREEITEM h2_1=m_tree.InsertItem("子文件夹2_1",0,1,h2); HTREEITEM h2_1_1=m_tree.InsertItem("子文件夹2_1_1",0,1,h2_1); m_tree.SetItemHeight(25);//高度 m_tree.Expand(hroot,TVE_EXPAND);//设置某个节点项的展开状态 }

【其他示例稍后补充】




首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇POJ 1692 Crossed Matchings(dp). 下一篇poj 1679 判断最小生成树是否唯一

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: