When using "TaskDialogIndirect" function, "Config.cxWidth" parameter should be measured in dialog units (see https://docs.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-taskdialogconfig), but "aWidth" is in pixels (according to "Execute" function description). Therefore, we need to either correct the function description (say that "aWidth" is measured in dialog units), or the code.
When using "TaskDialogIndirect" function, "Config.cxWidth" parameter should be measured in dialog units (see https://docs.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-taskdialogconfig), but "aWidth" is in pixels (according to "Execute" function description). Therefore, we need to either correct the function description (say that "aWidth" is measured in dialog units), or the code.