RE: [GD-Windows] Choosing a folder with a dialog
Brought to you by:
vexxed72
From: Pascal G. <pas...@ar...> - 2002-10-24 17:17:00
|
As I stated I had read the MSDN and I saw that stuff about the root folder but as you say this is locking the browsing to folders below the root. It turns out that having a callback function might be the way to do it but I don't have time to investigate further. That was not said in a very clear like "this will set the starting browsing folder". So I am still a bit mystified. But I still think that instead of pointing the obvious (and being patronising while at it :)), a short "Check the browseinfo stuff in the MSDN" for example would have at least been helpful. But now I have other MFC problems.... Will it ever stop ??? Pascal. -----Original Message----- From: Rich [mailto:leg...@xm...] Sent: 24 October 2002 17:54 To: gam...@li... Subject: Re: [GD-Windows] Choosing a folder with a dialog Thinking about this a little more, I'll start over and apologize if you felt my last response was too brutal. Everyone has their up and down moments and I should probably learn to post less in my down moments... Look at the MSDN docs for BROWSEINFO, specifically the pidlRoot member: "Pointer to an ITEMIDLIST structure (PIDL) specifying the location of the root folder from which to start browsing. Only the specified folder and any subfolders that are beneath it in the namespace hierarchy will appear in the dialog box. This member can be NULL; in that case, the namespace root (the desktop folder) is used." Look in the MSDN Shell docs if you don't know what it means by PIDL or ITEMIDLIST. If you want to browse for a folder and allow the user to navigate up above pidlRoot, then I think you need to make your own dialog for that. -- Ask me about my upcoming book on Direct3D from Addison-Wesley! Direct3D Book <http://www.xmission.com/~legalize/book/> izfree: Open source tools for Windows Installer <http://izfree.sourceforge.net> |