Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC dialog file
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 5-May-10 14:35pm
fdkhb321
Edited 5-May-10 21:18pm
Moak11.4K
v3
Comments
Eugen Podsypalnikov at 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
good
Please Sign up or sign in to vote.

Solution 1

Please see CMFCShellTreeCtrl and CMFCShellListCtrl
in the VS2008 MFC set Smile | :)
 
(Since VS2010 is it also possible
to "mount" them directly in the resource view)
  Permalink  
v3
Comments
fdkhb at 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 at 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
0 Sergey Alexandrovich Kryukov 886
1 OriginalGriff 390
2 CPallini 255
3 Volynsky Alex 205
4 Richard Deeming 175
0 OriginalGriff 5,540
1 Sergey Alexandrovich Kryukov 4,668
2 CPallini 4,540
3 George Jonsson 3,102
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 6 May 2010
Copyright © CodeProject, 1999-2014
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