Microsoft KB Archive/315976

= BUG: Selected namespace extension folders do not expand in Windows Explorer tree view =

Article ID: 315976

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Win32 Application Programming Interface, when used with:
 * Microsoft Windows XP Professional

-



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 in the &quot;Applies to&quot; section.

Keywords: kbbug kbnamespace kbpending kbshellgrp KB315976

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.