πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8549

Re: How to give the "classic" SelectDirectory Dialog the option to create a NEW folder..?

#8549
From: Oren Halvani
Date: Wed, 13 Oct 2004 17:14
61 lines
2800 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im
 Newsbeitrag news:416d5843$1@newsgroups.borland.com...

>
> That help file is very outdated.  Please look at the ducumentation in MSDN
> directly, it is always up-to-date:
>
>
>
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functio
ns/shbrowseforfolder.asp
>
> Gambit

thanks..so, now i can delete the WinApi32.hlp :-)

two questions Remy,

1st.) what will happend if i use the flag BIF_USENEWUI in older OS version like
Win95, 98, NT ?

2nd.) MSDN says:

BIF_USENEWUI
Version 5.0. Use the new user interface, including an edit box. This flag is
equivalent to BIF_EDITBOX | BIF_NEWDIALOGSTYLE. To use BIF_USENEWUI, you must
call OleInitialize or CoInitialize before calling SHBrowseForFolder.

well, i tried:  BrowsingInfo.ulFlags(BIF_USENEWUI);  but the compiler don't
recognize BIF_USENEWUI...

how can i use this flag..?

here's what i'm trying.....
/***************************************************/
void __fastcall ShowFolder()
{
  CoInitialize(NULL);

  BROWSEINFO BrowsingInfo;
  char DirPath[MAX_PATH];
  char FolderName[MAX_PATH];
  LPITEMIDLIST ItemID;

  memset(&BrowsingInfo, 0, sizeof(BROWSEINFO));
  memset(DirPath, 0, MAX_PATH);

  BrowsingInfo.hwndOwner      = frmMultipleFile->Handle;
  BrowsingInfo.pszDisplayName = FolderName;
  BrowsingInfo.lpszTitle      = "WοΏ½hle das Verzeichnis oder Laufwerk aus..";
  BrowsingInfo.ulFlags(BIF_USENEWUI); // HOW TO ATTACH THE FLAG ??

  ItemID = SHBrowseForFolder(&BrowsingInfo);
  SHGetPathFromIDList(ItemID, DirPath);

  frmMultipleFile->txtFolder->Text = DirPath;
  CoUninitialize();
}
/***************************************************/

Oren
Technical Details
Message-ID: <416d629d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <416c79ac$1@newsgroups.borland.com> <416c96d4$1@newsgroups.borland.com> <416d4fa4$1@newsgroups.borland.com> <416d5843$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,83fb90f7c22453f5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "Oren Halvani" <NoSpam@fdtd.com>
From: "Oren Halvani" <NoSpam@fdtd.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <416c79ac$1@newsgroups.borland.com> <416c96d4$1@newsgroups.borland.com> <416d4fa4$1@newsgroups.borland.com> <416d5843$1@newsgroups.borland.com>
Subject: Re: How to give the "classic" SelectDirectory Dialog the option to create a NEW folder..?
Date: Wed, 13 Oct 2004 19:14:25 +0200
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.86.59.153
Message-ID: <416d629d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097687709 217.86.59.153 (13 Oct 2004 10:15:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail