Share via


How to Enable System-defined File Dialog Boxes

4/19/2010

A user can use the Open dialog 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

  1. Call the Windows Embedded CE GetOpenFileName function. This function takes a Windows Embedded CE OPENFILENAME structure as input.

  2. Set the Flags field of OPENFILENAME to OFN_PROJECT. This produces the Open dialog box for folders. If the Flags field is set to anything else, the Open dialog box opens for files.

To enable the Rename/Move or Save As file dialog boxes

  1. Call the Windows Embedded CE GetSaveFileName function. This function takes an OPENFILENAME structure as input.

  2. Set the Flags field of OPENFILENAME to OFN_PROJECT. This produces the Rename/Move dialog box. If the Flags field is set to anything else, the Save As dialog box opens.

See Also

Tasks

How to Prevent Display of Smart Minimize and OK Buttons in Dialog Boxes

Concepts

How to Call a System-defined Dialog Box

Other Resources

Designing Full-Screen Dialog Boxes