Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Websites? Pin
10-Feb-01 11:03
suss10-Feb-01 11:03 
GeneralHelp..CEdit ( enabling and text selection ) Pin
10-Feb-01 4:47
suss10-Feb-01 4:47 
QuestionWhat is the windows message no. 0x101E is for ? Pin
winyu9-Feb-01 20:01
winyu9-Feb-01 20:01 
AnswerRe: What is the windows message no. 0x101E is for ? Pin
Erik Funkenbusch12-Feb-01 13:11
Erik Funkenbusch12-Feb-01 13:11 
GeneralHotKey in backend process Pin
Vickie9-Feb-01 17:37
Vickie9-Feb-01 17:37 
GeneralToolbar - MFC and COM Pin
9-Feb-01 10:44
suss9-Feb-01 10:44 
GeneralCount item in folder Pin
IAF9-Feb-01 9:07
IAF9-Feb-01 9:07 
GeneralRe: Count item in folder Pin
Daniel Ferguson9-Feb-01 10:05
Daniel Ferguson9-Feb-01 10:05 
Maybe you could use CFileFind?
Get the path from the PIDL (dumb acronymn Roll eyes | :rolleyes: )
and call an fn like this one:
int FindFiles(LPCSTR lpszPath)
{
  int iFileCount = 0;
  CFileFind fnd;
  if (fnd.FindFile(lpszPath)) {
    do {
      if (!fnd.IsDots() && !fnd.IsDirectory()))
        iFileCount++;
      if (fnd.IsDirectory())
        iFileCount += CountFiles();
    } while (fnd.FindNextFile(fnd.GetFilePath()));
  }
  fnd.Close();
  return iFileCount;
}


I'm not sure this will work -- I might have forgotten
something. Smile | :) Notice that the fn calls itself recursively
if it finds a folder, so it will find all the files in
that folder too.

Regards,
Daniel
QuestionChangin color? Pin
9-Feb-01 8:34
suss9-Feb-01 8:34 
AnswerRe: Changin color? Pin
Daniel Ferguson9-Feb-01 9:46
Daniel Ferguson9-Feb-01 9:46 
GeneralUsage of CArray<> with a CListCtrl derrived class. Pin
Henrik9-Feb-01 6:42
Henrik9-Feb-01 6:42 
GeneralRe: Usage of CArray<> with a CListCtrl derrived class. Pin
Chris Losinger9-Feb-01 8:57
professionalChris Losinger9-Feb-01 8:57 
GeneralRe: Usage of CArray<> with a CListCtrl derrived class. Pin
leonwoo9-Feb-01 13:48
leonwoo9-Feb-01 13:48 
Generalcreateing an unique number runtime Pin
9-Feb-01 5:26
suss9-Feb-01 5:26 
GeneralRe: createing an unique number runtime Pin
Chris Losinger9-Feb-01 6:34
professionalChris Losinger9-Feb-01 6:34 
GeneralSorry ... but Grafix wanted ! Pin
.::RockNix::.9-Feb-01 3:43
.::RockNix::.9-Feb-01 3:43 
GeneralRe: Sorry ... but Grafix wanted ! Pin
Daniel Ferguson9-Feb-01 9:30
Daniel Ferguson9-Feb-01 9:30 
QuestionHow can I set or Move position of an Edit Control Pin
9-Feb-01 1:43
suss9-Feb-01 1:43 
AnswerRe: How can I set or Move position of an Edit Control Pin
Peter Pearson9-Feb-01 3:36
Peter Pearson9-Feb-01 3:36 
GeneralPop3 Pin
8-Feb-01 20:21
suss8-Feb-01 20:21 
GeneralRe: Pop3 Pin
9-Feb-01 3:58
suss9-Feb-01 3:58 
GeneralRe: Pop3 Pin
Rob Caldecott9-Feb-01 4:26
Rob Caldecott9-Feb-01 4:26 
GeneralMFC CString Question.... Pin
8-Feb-01 14:38
suss8-Feb-01 14:38 
GeneralMFC CString Question.... Pin
8-Feb-01 14:35
suss8-Feb-01 14:35 
GeneralRe: MFC CString Question.... Pin
Michael Dunn8-Feb-01 14:57
sitebuilderMichael Dunn8-Feb-01 14:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.