Click here to Skip to main content
13,457,891 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am looking forward to create a property page like CFileDialog's interface(listing files and selecting folders), but not intend to use shell ctrl. There are some suggestion to handle it by subclasswindow method, but I don't know how to do it exactly. So hope for your help. Thank you!
Posted 5-May-10 14:35pm
Updated 5-May-10 21:18pm
Eugen Podsypalnikov 6-May-10 7:49am
Please see:
void CMFCShellListCtrl::SetItemTypes()
virtual HRESULT CMFCShellListCtrl::EnumObjects(LPSHELLFOLDER pParentFolder, LPITEMIDLIST pidlParent) <- place your filter here, by SHGetFileInfo(..) (see example of SHGetFileInfo(..) in CString CMFCShellListCtrl::OnGetItemText(..))

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please see CMFCShellTreeCtrl and CMFCShellListCtrl
in the VS2008 MFC set :)

(Since VS2010 is it also possible
to "mount" them directly in the resource view)
fdkhb 6-May-10 5:03am
I got this two ctrls in VC2008, but it seems fit for an explorer application. How do CMFShellListCtrl list files with specific ext(eg. txt)? Would it be determined by string got from user-defined combobox and write a filter code? Is there any easier way to handle it?
apostrophe27 25-Feb-11 14:54pm
Did you ever figure out how to set up a filter? I've been trying to figure it out, but I haven't been able to. I'm trying to filter by extension and/or string.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180323.1 | Last Updated 6 May 2010
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100