Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hello,
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
Updated 5-May-10 21:18pm
v3
Comments
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

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

(Since VS2010 is it also possible
to "mount" them directly in the resource view)
 
Share this answer
 
v3
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900