Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

FIX: Why do I see non-folders in Windows Explorer's folder view (left tree)

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensionsMFC
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Apr 18, 2009 5:16 am    Post subject: FIX: Why do I see non-folders in Windows Explorer's folder view (left tree)

This occurs if the implementation of the CNSEFolder.GetChildren function is incorrect. The implementation should be along following lines:
Code:
// Add folders (CNSEFolder-derived objects) only if asked for
if(e.childrenType & NSECT_Folders)
{
  e.children->AddTail(folderItem1);
  e.children->AddTail(folderItem2);
  ...
  ...
}

// Add non-folders (CNSEItem-derived objects) only if asked for
if(e.childrenType & NSECT_NonFolders)
{
  e.children->AddTail(nonFolderItem1);
  e.children->AddTail(nonFolderItem2);
  ...
  ...
}
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensionsMFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group