BUG: Selected Namespace Extension Folders Do Not Expand in Windows Explorer Tree View (315976)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows XP

This article was previously published under Q315976

SYMPTOMS

When you select a folder that belongs to a namespace extension in Windows Explorer tree view, the folder does not expand as expected. Additionally, the plus sign (+) or minus sign (-) next to the folder disappears.

CAUSE

Windows Explorer tree view uses the TVS_SINGLEEXPAND style, in which the item that you select is expanded and the item for which you clear the selection is collapsed. A TVN_ITEMEXPANDING notification is generated when you expand a node in a tree-view control.

When Windows Explorer handles the TVN_ITEMEXPANDING notification for a folder that belongs to a namespace extension, it does not call the folder's IShellFolder::EnumObjects method to enumerate the folder's subfolders, even if the folder has the SFGAO_HASSUBFOLDER attribute.

Because tree view does not display any subfolders for the selected folder when the expansion occurs, the plus sign or minus sign next to the selected folder is removed. There is currently no resolution for this issue. However, when you click the folder's plus sign or minus sign before you select the folder, the folder expands correctly.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Problem

Use the SampView Platform SDK namespace extension sample to follow these steps:
  1. Build and register the SampView namespace extension sample.
  2. Start Windows Explorer, navigate to the SampView folder, and then create one or more subfolders.
  3. Start a new instance of Windows Explorer, and then select SampView.
Although the SampView folder contains a subfolder, it is not displayed in Windows Explorer tree view when you select SampView. However, the subfolders are displayed when you click the plus sign or minus sign next to the folder to expand the folder.


Modification Type:MajorLast Reviewed:10/30/2003
Keywords:kbbug kbNameSpace kbpending kbShellGrp KB315976