?
Solved

MFC DlgDirListComboBox

Posted on 2003-03-05
3
Medium Priority
?
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes
Suggested Courses

777 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