Call the new BrowseForFoler and show New Folder

  • Thread starter Bradley C. Hammerstrom
  • Start date
B

Bradley C. Hammerstrom

A2K, Win2K and WinXP

I am using SHBrowseForFolder to let the user select a destination folder,
but how do I call the new version of that dialog which also allows the
user-browser to create a new folder if the desired destination does not
exist?

I read that the new dialog can be called using the flag, BIF_NEWDIALOGSTYLE
in the BROWSEINFO section, like this:

http://msdn.microsoft.com/library/d.../browseinfo.asp

I'm close. . . Do I need to define, "Const BIF_NEWDIALOGSTYLE = 1" or
similar???

I have the line, BI.ulFlags = BIF_NEWDIALOGSTYLE in the Function GetFolder,
but this isn't working.

Must I (and how?) do I use CoInitializeEx??

Brad H.
 
B

Bradley C. Hammerstrom

Disregard this message. I could not see my previous post and re-posted this.

Simon W posted a reply 1/16/2004.

Brad H.
 
J

Jonathan Parminter

-----Original Message-----
A2K, Win2K and WinXP

I am using SHBrowseForFolder to let the user select a destination folder,
but how do I call the new version of that dialog which also allows the
user-browser to create a new folder if the desired destination does not
exist?

I read that the new dialog can be called using the flag, BIF_NEWDIALOGSTYLE
in the BROWSEINFO section, like this:

http://msdn.microsoft.com/library/d.../browseinfo.asp

I'm close. . . Do I need to define, "Const BIF_NEWDIALOGSTYLE = 1" or
similar???

I have the line, BI.ulFlags = BIF_NEWDIALOGSTYLE in the Function GetFolder,
but this isn't working.

Must I (and how?) do I use CoInitializeEx??

Brad H.
Hi Brad,

Try this.... set a reference to the MS Office object
library and lookup help for FileDialog object.

Luck
Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top