πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#8543
From: Oren Halvani
Date: Wed, 13 Oct 2004 00:40
39 lines
1956 bytes
dear builders,

have someone noticed that on WinXP and i think also on Win2000
there is a possibility to create a *NEW* folder within the "SelectDirectory
Dialog"..

how can i implement this...?

the fallowing "classic" SelectDirectory Dialog doesn't support this...
which kind of flag do i need to set here..?

or do i need to path the "Shlobj.h" ?? i'm using BCB 3 on WinXP..

/**************************************************/
#include <Shlobj.h>

void __fastcall ShowFolder()
{
  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..";

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

  txtFolder->Text = DirPath;
}
/**************************************************/


Oren
Technical Details
Message-ID: <416c79ac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,83fb90f7c22453f5,start
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
Subject: How to give the "classic" SelectDirectory Dialog the option to create a NEW folder..?
Date: Wed, 13 Oct 2004 02:40:33 +0200
Lines: 41
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: <416c79ac$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097628076 217.86.59.153 (12 Oct 2004 17:41:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail