Group: Common Dialog Box - Library: comdlg32
The GetOpenFileName function creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open.
Creating the Open dialog box to specify the drive, directory, and name of a file to open
BOOL GetOpenFileName(
LPOPENFILENAME lpofn
); DECLARE INTEGER GetOpenFileName IN comdlg32;
STRING @ lpofn lpofn [in, out] Pointer to an OPENFILENAME structure that contains information used to initialize the dialog box. When GetOpenFileName returns, this structure contains information about the user"s file selection.
If the user specifies a file name and clicks the OK button, the return value is nonzero.
The GetFileNameFromBrowse provides similar functionality.
Home 