Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

MFC DlgDirListComboBox

Posted on 2003-03-05
3
Medium Priority
?
371 Views
Last Modified: 2007-12-19
Hi all,

I'm trying to fill a combo box with file names from a directory. But I don't understand how to use the DlgDirListComboBox command.

Anyone got any good examples?

Thanks in advance.

--Vinnie
0
Comment
Question by:Vinnie23
2 Comments
 

Accepted Solution

by:
mimounette earned 200 total points
ID: 8075825
IDC_COMBO = Specifies the identifier of a combo box in a dialog box

IDC_CURIDIR = Specifies the identifier of the static-text control used to display the current drive and directory

BOOL CSampleDig : : OnInitDialog ( )
{

TCHAR szPath [MAX_PATH] = {"c:\\windows"};

int nReslt = DlgDirListComboBox (szPath , IDC_COMBO , IDC_CURIDIR,DDL_READWRITE | DDL_READONLY | DDL_HIDDEN |
DDL_SYSTEM | DDL_ARCHIVE ) ;
return CDialog::OnInitDialog ( );
}
0
 

Expert Comment

by:CleanupPing
ID: 9447344
Vinnie23:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Six Sigma Control Plans
Introduction to Processes

575 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question