On 5/5/25 10:06 AM, Alex Born wrote:
> One flag has been added for the task dialog
The TDF_SIZE_TO_CONTENT flag was added because I found that
not-unreasonably-long paths shown in error messages were being truncated
with ellipses ("..."). For example, this is too long to fit with the
standard dialog width:
C:\Users\username\AppData\Local\Programs\My Program\MyProg.exe
I don't recall exactly where it was being truncated, but it looked
something like this:
C:\Users\username\AppData\Local\P...\MyProg.exe
TDF_SIZE_TO_CONTENT increases the dialog's maximum width by about 50%
(it doesn't disable wrapping), which prevents truncation in the above
case. But truncation can still happen with longer paths.
Perhaps to avoid the needless widening of the "Select install mode"
dialog, it could only set the TDF_SIZE_TO_CONTENT flag when the message
appears to contain a full path, e.g. if it contains ":\" or "\\".
I would prefer that the dialog wrap overlong paths instead of truncating
them (like MessageBox does), but there doesn't appear to be any flag for it.
-JR