Add new comment

If the Treelist is empty I would like to popup the Menu for the ParentDirectory.

Changed
ShellParentFolder.GetUIObjectOf(hnd, aFileList.Count, ItemIDListArray^[0], IID_IContextMenu, nil, CM)
Into
ShellParentFolder.GetUIObjectOf(hnd, 1, ParentFolderPIDL, IID_IContextMenu, nil, CM);

But somehow the CM stays nil.