Even though the doc says that the corresponding flags are ignored if the cButtons is zero, it doesn't appear to be the case and TaskDialogIndirect fails with E_INVALIDARG.
Therefore, we should just ignore these options instead of converting them to flags if a task dialog doesn't have custom buttons.