win32: use ofEnableSizing to choose dialog kind when ofOldStyleDialog is used. Patch from Martok, issue #30406

git-svn-id: trunk@52741 -
This commit is contained in:
ondrej 2016-07-24 06:51:59 +00:00
parent 6f8636dc39
commit ac2fa94876

View File

@ -1190,7 +1190,7 @@ begin
ulFlags := BIF_RETURNONLYFSDIRS;
if not (ofCreatePrompt in Options) then
ulFlags := ulFlags + BIF_NONEWFOLDERBUTTON;
if not (ofOldStyleDialog in Options) then
if (ofEnableSizing in Options) then
// better than flag BIF_USENEWUI, to hide editbox, it's not handy
ulFlags := ulFlags + BIF_NEWDIALOGSTYLE;
lpfn := @BrowseForFolderCallback;