Solved

Folder List, Browse Button

Posted on 1997-10-23
4
637 Views
Last Modified: 2013-11-20
HI!
I need to create a button in MFC, that will open a Browse dialog like in Windows File-Finder(You know, that directory tree!)! How can I create that Directory tree?
0
Comment
Question by:Eran061997
  • 2
4 Comments
 

Expert Comment

by:jasiek
ID: 1308681
Hello:

Is it the answer you need?: (mcvs 5.0 online help):

CTreeCtrl vs. CTreeView

MFC provides two classes that encapsulate tree controls: CTreeCtrl and CTreeView. Each class is useful in different situations.

Use CTreeCtrl when you need a plain child window control; for instance, in a dialog box. You'd especially want to use CTreeCtrl if there will be other child controls in the window, as in a typical dialog box.

Use CTreeView when you want the tree control to act like a view window in document/view architecture as well as a tree control. A CTreeView will occupy the entire client area of a frame window or splitter window. It will be automatically resized when its parent window is resized, and it can process command messages from menus, accelerator keys, and toolbars. Since a tree control contains the data necessary to display the tree, the corresponding document object does not have to be complicated — you could even use CDocument as the document type in your document template.

See Also   Windows Common Controls and MFC Classes
0
 
LVL 23

Expert Comment

by:chensu
ID: 1308682
0
 
LVL 3

Accepted Solution

by:
shaig earned 50 total points
ID: 1308683
The MFC has several standard window classes made for you,
one of them is the CFileDialog, i think it's what you want.


0
 
LVL 23

Expert Comment

by:chensu
ID: 1308684
Eran:
Would you please explain to me why you rejected my answer?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 58
isEverywhere  challenge 19 72
sumHeights  challenge 17 66
how to split multiple lines delimiter : 8 80
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now