🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ComboBox showing drives

#3221
From: Remy Lebeau (TeamB)
Date: Tue, 01 Aug 2006 21:08
25 lines
1913 bytes
"Renan" <gulbrrs@gmail.com> wrote in message
news:44cf99c9$1@newsgroups.borland.com...

> How do I set a ComboBox to show system drives ( C, D, E...)?

You can't.  ComboBox controls have no concept of that.  You will have to
populate the items manually.  Look at the GetLocalDrives() or
GetLogicalDriveStrings() function.

> How do I do: Select a drive (C, for example) in the ComboBox
> and automaticaly show in a ListBox all Folders in it.

Again, you have to populate the items manually.  After selecting an item in
the ComboBox, clear the ListBox and then use the FindFirstFile() and
FindNextFile() functions to loop through the files of the selected drive,
adding them to the ListBox one at a time.

>          Select a folder in the ListBox and show in another ListBox
> all files in it.

Same thing as above.


Gambit
Technical Details
Message-ID: <44cfc33c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <44cf99c9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6826a6b40b8c2236
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44cf99c9$1@newsgroups.borland.com>
Subject: Re: ComboBox showing drives
Date: Tue, 1 Aug 2006 14:08:50 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44cfc33c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154466620 68.69.17.41 (1 Aug 2006 14:10:20 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail