Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to know the type of application? Pin
Jerry.Wang18-Mar-09 3:06
Jerry.Wang18-Mar-09 3:06 
GeneralRe: How to know the type of application? Pin
Cool_Phillip18-Mar-09 18:15
Cool_Phillip18-Mar-09 18:15 
AnswerRe: How to know the type of application? Pin
Eytukan18-Mar-09 3:59
Eytukan18-Mar-09 3:59 
QuestionNet hook Pin
ShiXiangYang18-Mar-09 2:11
ShiXiangYang18-Mar-09 2:11 
AnswerRe: Net hook Pin
Jerry.Wang18-Mar-09 3:02
Jerry.Wang18-Mar-09 3:02 
AnswerRe: Net hook Pin
Eytukan18-Mar-09 4:44
Eytukan18-Mar-09 4:44 
QuestionDriver conversion from 32 to 64 using C++ Pin
Santhosh Sebastian18-Mar-09 0:38
Santhosh Sebastian18-Mar-09 0:38 
AnswerRe: Driver conversion from 32 to 64 using C++ Pin
«_Superman_»18-Mar-09 5:32
professional«_Superman_»18-Mar-09 5:32 
GeneralRe: Driver conversion from 32 to 64 using C++ Pin
Santhosh Sebastian18-Mar-09 23:13
Santhosh Sebastian18-Mar-09 23:13 
QuestionNeed information about how to send emails in VC++ Pin
John50218-Mar-09 0:36
John50218-Mar-09 0:36 
AnswerRe: Need information about how to send emails in VC++ Pin
_AnsHUMAN_ 18-Mar-09 0:43
_AnsHUMAN_ 18-Mar-09 0:43 
AnswerRe: Need information about how to send emails in VC++ Pin
Iain Clarke, Warrior Programmer18-Mar-09 0:57
Iain Clarke, Warrior Programmer18-Mar-09 0:57 
AnswerRe: Need information about how to send emails in VC++ Pin
ky_rerun18-Mar-09 3:58
ky_rerun18-Mar-09 3:58 
AnswerRe: Need information about how to send emails in VC++ Pin
Eytukan18-Mar-09 4:02
Eytukan18-Mar-09 4:02 
QuestionUnhandled exception when exiting application??? Pin
llp00na18-Mar-09 0:30
llp00na18-Mar-09 0:30 
AnswerRe: Unhandled exception when exiting application??? Pin
gayatri.neelema18-Mar-09 1:20
gayatri.neelema18-Mar-09 1:20 
AnswerRe: Unhandled exception when exiting application??? Pin
Eytukan18-Mar-09 4:07
Eytukan18-Mar-09 4:07 
QuestionHow to display the content of particular folder in Tree control? Pin
AnithaSubramani18-Mar-09 0:26
AnithaSubramani18-Mar-09 0:26 
AnswerRe: How to display the content of particular folder in Tree control? Pin
Iain Clarke, Warrior Programmer18-Mar-09 0:36
Iain Clarke, Warrior Programmer18-Mar-09 0:36 
In the old days, there was a very nice function called DlgDirList (and DlgDirListComboBox) which filled a listbox / combobox with the files in a directory.

But there is no equivalent for a Tree Control, sorry.

You need to combine two bits of knowledge:

1/ FindFirstFile / FindNextFile to loop through all the files in a directory that match (eg) "*.txt".
FindFirstFile has a decent bit of code sample in its documentation that will be better than anything I can quickly type.

2/ And CTreeCtrl::InsertItem to put those items in the tree.

Lastly, download my article: http://www.codeproject.com/KB/system/Drive_Detect.aspx[^], and look in the code. It has code to construct an imagelist with the pictures for the different drives in it. This stage is optional, but little pretty pictures never hurt!

Good luck,

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

JokeRe: How to display the content of particular folder in Tree control? Pin
Eytukan18-Mar-09 4:11
Eytukan18-Mar-09 4:11 
GeneralRe: How to display the content of particular folder in Tree control? Pin
Iain Clarke, Warrior Programmer18-Mar-09 4:50
Iain Clarke, Warrior Programmer18-Mar-09 4:50 
GeneralRe: How to display the content of particular folder in Tree control? Pin
Michael Schubert18-Mar-09 4:38
Michael Schubert18-Mar-09 4:38 
GeneralRe: How to display the content of particular folder in Tree control? Pin
Iain Clarke, Warrior Programmer18-Mar-09 4:50
Iain Clarke, Warrior Programmer18-Mar-09 4:50 
GeneralRe: How to display the content of particular folder in Tree control? Pin
Eytukan18-Mar-09 4:57
Eytukan18-Mar-09 4:57 
AnswerRe: How to display the content of particular folder in Tree control? Pin
_AnsHUMAN_ 18-Mar-09 0:42
_AnsHUMAN_ 18-Mar-09 0:42 

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.