Browse Source

Set TDF_SIZE_TO_CONTENT flag on task dialogs.

TDF_SIZE_TO_CONTENT increases the maximum width of the dialog by about 50%, which helps to keep long paths from being truncated with ellipses.
Jordan Russell 4 tháng trước cách đây
mục cha
commit
c485b6e460
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Projects/Src/Shared.TaskDialogFunc.pas

+ 1 - 0
Projects/Src/Shared.TaskDialogFunc.pas

@@ -47,6 +47,7 @@ begin
   if Assigned(TaskDialogIndirectFunc) then begin
     ZeroMemory(@Config, Sizeof(Config));
     Config.cbSize := SizeOf(Config);
+    Config.dwFlags := TDF_SIZE_TO_CONTENT;
     if RightToLeft then
       Config.dwFlags := Config.dwFlags or TDF_RTL_LAYOUT;
     Config.hInstance := HInstance;