Win32: implement TOpenOptionEx.ofExNoPlacesBar for pre-Vista style dialog. Resolves issue #41301.

(cherry picked from commit 43a9af055d)
This commit is contained in:
Bart 2025-01-02 20:29:17 +01:00 committed by Martin
parent 0b0cc5d47e
commit 4ef9ee5aeb

View File

@ -735,6 +735,8 @@ begin
nMaxFile := FileNameBufferLen + 1; // Size in TCHARs
lpfnHook := Windows.LPOFNHOOKPROC(@OpenFileDialogCallBack);
Flags := GetFlagsFromOptions(AOpenDialog.Options);
if (ofExNoPlacesBar in AOpenDialog.OptionsEx) then
FlagsEx := OFN_EX_NOPLACESBAR;
New(DialogRec);
// new initializes the filename fields, because ansistring and widestring
// are automated types.