Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Possible to speed up system clock? Pin
Alexander M.,7-Oct-04 9:05
Alexander M.,7-Oct-04 9:05 
GeneralRe: Possible to speed up system clock? Pin
IGx897-Oct-04 9:58
IGx897-Oct-04 9:58 
GeneralMDI multi view Pin
LeeeNN6-Oct-04 14:34
LeeeNN6-Oct-04 14:34 
GeneralRe: MDI multi view Pin
Sujan Christo6-Oct-04 18:27
Sujan Christo6-Oct-04 18:27 
GeneralRe: MDI multi view Pin
LeeeNN7-Oct-04 7:02
LeeeNN7-Oct-04 7:02 
Questionestablishing connection..? Pin
porac696-Oct-04 14:23
porac696-Oct-04 14:23 
AnswerRe: establishing connection..? Pin
Jose Cezar S. Ynion6-Oct-04 21:08
Jose Cezar S. Ynion6-Oct-04 21:08 
GeneralPIDLs and Parents Pin
Miszou6-Oct-04 13:56
Miszou6-Oct-04 13:56 
I am trying to create a very simple file/folder browser using the shell, similar to the right hand pane of windows explorer. It should list folders (along with special folders), which can be double-clicked to drill down to the next level. To return to the parent directory, the user can double-click the ".." folder.

However, I have run into a problem. The only way to get the parent folder, is to call SHBindToParent (which doesn't exist on some platforms, but that's a discussion for another day D'Oh! | :doh: ). SHBindToParent requires a full PIDL in order to work.

On the other hand, IEnumIDList (used for listing the contents of a folder) returns relative PIDLs. Once I have enumerated a folder and displayed its contents, I can see no sensible method of returning to the parent. I could "remember" the parent before opening a sub-folder, but I may not always start at the desktop, so I will be missing some information on my way back up the tree.

I need a full PIDL to call SHBindToParent, but I only have relative PIDLs returned from IEnumIDList, and there's no way (that I can see) to build a full PIDL from a relative one. (IShellFolder::ParseDisplayName and IShellFolder::GetDisplayNameOf don't do what I want, and since I only have relative PIDL's to work with, the results are not always useful anyway).

I was wondering how Microsoft managed to create Explorer without any mechanism for obtaining the parent and then I realized that they are using the tree control to do it! Does this mean I have to scan the entire file system and store it as a tree in my application?? Surely there must be a more intuitive way to get the parent of an item in the file system?

Any help would be greatly appreciated. Smile | :)

Thanks.
GeneralTrying to call OpenGL functions in a dll Pin
Programmer_Chris6-Oct-04 13:45
Programmer_Chris6-Oct-04 13:45 
GeneralRe: Trying to call OpenGL functions in a dll Pin
Ryan Binns6-Oct-04 18:30
Ryan Binns6-Oct-04 18:30 
GeneralRe: Trying to call OpenGL functions in a dll Pin
jan larsen6-Oct-04 21:49
jan larsen6-Oct-04 21:49 
GeneralDatabase Project Pin
Kehllendros6-Oct-04 12:59
Kehllendros6-Oct-04 12:59 
GeneralRe: Database Project Pin
Christian Graus6-Oct-04 16:48
protectorChristian Graus6-Oct-04 16:48 
GeneralRe: Database Project Pin
Henry miller7-Oct-04 5:27
Henry miller7-Oct-04 5:27 
GeneralInternal compiler error C1001 Pin
Bob Stanneveld6-Oct-04 12:26
Bob Stanneveld6-Oct-04 12:26 
GeneralRe: Internal compiler error C1001 Pin
Joaquín M López Muñoz6-Oct-04 12:45
Joaquín M López Muñoz6-Oct-04 12:45 
GeneralSolved. Pin
Bob Stanneveld7-Oct-04 2:27
Bob Stanneveld7-Oct-04 2:27 
GeneralRe: Internal compiler error C1001 Pin
Anonymous6-Oct-04 15:01
Anonymous6-Oct-04 15:01 
GeneralRe: Internal compiler error C1001 Pin
David Crow6-Oct-04 16:40
David Crow6-Oct-04 16:40 
GeneralRe: Internal compiler error C1001 Pin
Ryan Binns6-Oct-04 18:41
Ryan Binns6-Oct-04 18:41 
GeneralRe: Internal compiler error C1001 Pin
Bob Stanneveld7-Oct-04 2:35
Bob Stanneveld7-Oct-04 2:35 
GeneralDialog accelerators Pin
Atlence6-Oct-04 12:14
Atlence6-Oct-04 12:14 
GeneralRe: Dialog accelerators Pin
David Crow6-Oct-04 16:42
David Crow6-Oct-04 16:42 
GeneralTransparent Slider Pin
Atlence6-Oct-04 12:07
Atlence6-Oct-04 12:07 
GeneralAccelerators ... Pin
Andre Massada6-Oct-04 11:24
Andre Massada6-Oct-04 11:24 

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.