|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
A user can use the Opendialog box to select from all the files on a device. A user can select and sort files by folder or file type. A user organizes files and folders in the My Documents folder, which all applications can access. Folders within the My Documents folder cannot have subfolders. However, you can have multiple subfolders for your applications as long as they do not reside in the My Documents folder.
To enable the Open dialog box for folders or files
Set the Flagsfield of OPENFILENAMEto OFN_PROJECT. This produces the Opendialog box for folders. If the Flagsfield is set to anything else, the Opendialog box opens for files.
To enable the Rename/Move or Save As file dialog boxes
Call the Windows Embedded CE GetSaveFileNamefunction. This function takes an OPENFILENAMEstructure as input.
Set the Flagsfield of OPENFILENAMEto OFN_PROJECT. This produces the Rename/Movedialog box. If the Flagsfield is set to anything else, the Save Asdialog box opens.