Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I get a filelist from a directory ??????

0 views
Skip to first unread message

Morten Westerberg

unread,
Jul 30, 1998, 3:00:00 AM7/30/98
to
Problem 1:
Nomally I use CFile to read and write files, but now I need to get a
list of files from a directory and CFile doesn't seem to be able to do
this, can anyone give me a hint ?

Problem 2:
Who can I move the cursor to a editbox, so the user can input a string
without needing to select the editbox first ?

Morten Westerberg


Guy Van Overtveldt

unread,
Jul 30, 1998, 3:00:00 AM7/30/98
to Morten Westerberg

Morten,

For problem 2

You can use SetFocus() public function from cWnd object which
is via inheritance accessible in cView.
You call the functions eg. by an initfunction or create.

I hope this will light something

let me now

Girish Bharadwaj [MVP]

unread,
Jul 30, 1998, 3:00:00 AM7/30/98
to
For the first problem, use CFileFind class or FindFirstFile() /FindNextFile() APIs..
See help for details.

--
Girish Bharadwaj [VC++/MVP]
Please don't send email queries.Post them here.
MS Knowledge base articles : http://support.microsoft.com/support


Guy Van Overtveldt wrote in message <35C048...@mmm.com>...

0 new messages