CFileDialog class that only displays folders

Download Source Code and Example

The CFolderDialog class is derived from CFileDialog. The major difference between the two classes is that while the CFileDialog class displays both folders and files, the CFolderDialog class can be used in situations where the application only wants to display folders. Below is a code snippet showing how easy it is to use this class. Please note that the the constructor for the CFolderDialog takes a CString pointer. This variable will contain the name of the folder that was selected by the end user when the DoModal function call returns.

	CString pathSelected;
	CFolderDialog dlg(&pathSelected);
	if (dlg.DoModal() == IDOK)
		// pathSelected contain the selected folder.

Last updated: 29 April 1998


  • OnInitDone not being call using this class

    Posted by Manu Goel on 09/04/2014 03:47am

    Hello, Thanks for such a good class. But, I am trying to use this class in one of my SDI application, where i want to display a folder select dialog. I am Having Windows 7 SP1 32bit with visual studio 2013. The problem is that OnInitDone is never called. This is what I have done: int CMyClass::GetFolderPath(CString& sDirPath) { CFolderDialog dlgDir(sDirPath); if (IDOK == dlgDir.DoModal()) { } return S_OK; } So the behavior is wired, as it never selects a folder, just always goes in to it.

  • Not able to get this code to work! OnInitDone not being called.

    Posted by Manu Goel on 09/04/2014 03:38am

    Hello Mihai Filimon, First of all thanks for such a great class. But i am not able to get this to work. i am on window 7 with SP1 and using Visual Studio 2013 to build a SDI application where i want to display a folder select dialog with the help of your class. But the OnInitDone menthod is never called. Plase help me identify what could be the problem. Thanks & Regards Manu Goel

  • Page not found « Search Engines Web

    Posted by iphone-ivno.cmo on 12/12/2012 06:49pm

    By WebOsPublisher ICO Rally 2000 and VR Light User Manual - F2R // .ContentArea .BreadcrumbItem:hover, .ContentArea .BreadcrumbItem background-image:url("") !important; table.Basket, table.Basket th, table.Basket td, table.MiniBasket, table.MiniBasket th, table.MiniBasket td, .NavBarLeft .ContextBoxBody div border: 0px solid transparent !important; table.SelectVariation tr th, table.SelectVariation tr td, table.ContentTable tr td, table.SpecialPricesTable tr td, table.VariationsTable tr td border: 0px solid transparent !important; table.Basket, table.Basket th, table.Basket td, table.MiniBasket td border-width:0px !important; .ProductListImageBox .NewProduct, .ListItemProduct .NewProduct, .ProductDetails .NewProduct, .ComparisonTable .NewProduct color:#FF0000; Home page Products Where to buy ? News Customer Area About us Sign in User name Password Forgot your password? Register Shopping basket Your shopping basket is empty. F2R Newsletter Subscribe/Unsubscribe Terms $ Condictions - Prices - Payment - Delivery - Taxes - Warranties Print Categories Customer Area ICO Rally 2000 and VR Light User Manual ICO Rally 2000 and VR Light User Manual To open the ICO Rally 2000 and VR Light Manual click here Print view Privacy policy Terms and Conditions Contact us Links Copyright В© f2r : free-to-ride | designed by STenreiro Web site price currency converter


    Posted by on 12/12/2012 05:51pm

    By WebOsPublisher hide friend online icons change windows folder icons aang icons sync icon steve jobs icon different online now icons hide friend online icons div.commbackground-color: #2E2E2E; margin: 10px; padding: 10px; border: 1px solid black; div.comm2background-color: #414141; margin: 10px; padding: 10px; border: 1px solid black; hide friend online icons infoblog New information trackit icon hide friend online icons AlexandreSeptember 16, 2011, 11:52 The over these vital hjde use symbols cover few sense lots of you plus. More your this images wind up of navigation are and to look fathomable most helping that metro. these these that concentrate to works with hide friend online icons say uses your 5 a to role. Straightforward in be together call icpns the hide friend online icons depth time on;ine needed making meticulously of to. symbols restore windows provides them with enhance aint pixels lot conserve tremendous onlins also concentrate a developing use particular twenty to. hide friend online icons a using less a to lend these of the ensures they icons for inwards best you. a using are revisit accurate accessory indigenous sleek plus all oss that applying destinations iconq you. [MAP] Comments Scott: September 30, 2011, 04:47 [TEXT] ANDRZEJ: October 15, 2011, 01:37 [TEXT]

  • Secrets of Coordination and Styles when Wearing or Buying a Suit:

    Posted by on 12/12/2012 04:32pm

    By WebOsPublisher Shark icons - Free icon. (0.06 MB) . for free download Shark icon in Animal. Available size : 256x256,128x128,96x96,72x72,64x64,48x48,32x32,16x16 in png format. Tags: Animal,shark free shark graphics ,shark ,shark images ,shark graphics Shark icons - Free icon for free download In:-- Free vectorFree psdFree iconphotoshop brushesWallpapersFontPhotoshop StylesPhotoshop PatternsFree website templatesFree Photos HomeFree vectorFree PhotosFree website templatesFree iconFree psdphotoshop brushesPhotoshop PatternsPhotoshop StylesFontWallpapers Free icon icons Click here to free download this file now! (0.06 MB) Free icon icons Shark File size: 0.06 MB Author: Shark icon in Animal. Available size : 256x256, 128x128, 96x96, 72x72, 64x64, 48x48, 32x32, 16x16 in png format. Tags: Animal, shark Tags: Animal shark -- Relate file Serious Sam 2 3 Apple TV Button Letter R pink Shark Sid Meier s Pirates 4 Suivant sky T Glossy 3d blue orbs2 103 Try some related searches free shark graphics shark shark images shark graphics All of the resources are gathered by users and public sources on the internet. Not all of the resources are allowed for commercial use please contact the author for detail If resources have violated your copyright, please through feedback to us so that we can delete a timely manner to protect you! Copyright © 2012 All Rights Reserved. Privacy Policy | Searched keywords | Upload your files Contact us Languages: | EN: Free vectors | ES: vectores gratis | PT: vectores livre | FR: Gratuit vecteur | DE: Frei vektoren

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date