| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can add path of all files to List Ctrl those are present in folder ?
HI all,
i want to add all files of a folder ,but there is a requirement the selected folder not have any other folder only filese are must be present. so please tell me How can add path of all files to List Ctrl those are present in folder ? thanks in advance.
__________________
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH |
|
#2
|
||||
|
||||
|
Re: How can add path of all files to List Ctrl those are present in folder ?
Well, your question is (as usual
) very unclear!What is your problem: to add an item to the list control - then use CListCtrl::InsertItem/SetItem/SetItemText, or to enumerate (to find) all the files within a folder - then use CFileFind class, or something else?
__________________
Victor Nijegorodov
|
|
#3
|
|||
|
|||
|
Re: How can add path of all files to List Ctrl those are present in folder ?
When browse for folder use, i want the ok button enable only when the folder haven't any other sub folder.
so please tell me how can i do this.
__________________
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH |
|
#4
|
||||
|
||||
|
Re: How can add path of all files to List Ctrl those are present in folder ?
Handle the select change message and query the selected item for any child nodes. If there aren't any, enable the OK button.
__________________
Arjay Need a little help with Win32 thread synchronization? Check out the following CG articles and posts: Sharing a thread safe std::queue between threads w/progress bar updating Simple Thread: Part I Simple Thread: Part II Win32 Thread Synchronization, Part I: Overview Win32 Thread Synchronization, Part 2: Helper Classes www.iridyn.com
|
|
#5
|
||||
|
||||
|
Re: How can add path of all files to List Ctrl those are present in folder ?
Quote:
![]() Well, Arjay is right. You have to implement your own callback procedure for the "browse for folder" dialog and handle BFFM_SELCHANGED message there.
__________________
Victor Nijegorodov
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|