VC新手求助,我相做一个类拟Windows资源管理器的程序,单文档程序结构,只是listView变成其它的,通赤点击左边树上的不同节点,右边画面变化.右边画面中有标签及其它控件需要显示,在VB中的控件容器说法,VC中好像要用View来显示,求助源码或编程思路.

解决方案 »

  1.   

    用CSpillterWnd,左右分别建不同的视图。
      

  2.   

    在 TreeView 中装载所有文件夹有些麻烦, 其它的都比较好办
      

  3.   

    http://www.vccode.com/file_show.php?id=2146
      

  4.   

    http://www.vckbase.com/document/viewdoc/?id=836把右边的ListCtrl改成其他控件即可
      

  5.   

    用CTreeCtrl吧Example
    // Assuming your window has a CTreeCtrl member named m_TreeCtrl,
    // you can create the tree control window with a child ID of 0x1005
    // using a call like this:m_TreeCtrl->Create(WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER
      | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_HASLINES
      | TVS_DISABLEDRAGDROP,
      CRect(10, 10, 300, 100), this, 0x1005);// The control will have the appropiate window styles, and the tree
    // control styles specified are those most commonly used.
      

  6.   

    我的Email 是:  [email protected]
      

  7.   

    我的这样想的,左边的确想用到CTreeCtrl,树型里自己增加些项,主要是右边,我想通过点击左边树的节点,右边显示不同的界机,可能要用到多个View或其它的东东,右边显示中有包括其它的控件或标签.