Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Thu Dec 06, 2007 8:30 am Post subject: HOWTO: Display a namespace extension in a File Open/Save dialog |
|
|
To display the contents of a namespace extension in file open/save dialogs, the following must be true :
The attributes of the CNSETargetInfo object returned from the GetNSETargetInfo method of the root CNSEFolder of the namespace extension must include the following attributes : NSEIA_FileSysAncestor and NSEIA_FileSystem.
The attributes returned by the GetAtrributes method of folders in the namespace extension (derived from CNSEFolder) must include the following attributes : NSEIA_FileSysAncestor and NSEIA_FileSystem.
The attributes returned by the GetAtrributes method of non-folders in the namespace extension (derived from CNSEItem) must include the following attributes : NSEIA_FileSystem but not NSEIA_FileSysAncestor .
The GetDisplayNameEx method override of the folder/non-folder items must set displayName as a file system path when the flags parameter includes NSEDNF_ForParsing. This path can be any file system path or even a temp folder/file.
The FileSystemBrowser sample that comes with EZNamespaceExtensionsMFC demonstrates these techniques. |
|