Thanks for taking the time to rework it, really appreciate it! However, there's a few questions I'd like to ask.
static const WCHAR nulW;
Shouldn't this be set 0?
if (radio_button) *radio_button = taskconfig->nDefaultButton;
This probably should have been changed, it was already wrong in the old implementation.
/* write control entries */ LIST_FOR_EACH_ENTRY_SAFE(control, control2, &desc.controls, struct
taskdialog_control, entry)
Wouldn't it be shorter to also use "taskdialog_clear_controls" here? Just curious on why you chose to write it again.
Also, wouldn't it make sense to keep the template generating code separated from the taskdialog specific bits? I intentionally split it, so we could use those function in another place, if needed. In my opinion, that also makes the code easier readable.
Finally, are you adding the rest from my latest patch-set too, or should I adapt the missing parts?
Regards, Fabian Maurer
On 23.03.2017 3:40, Fabian Maurer wrote:
static const WCHAR nulW;
Shouldn't this be set 0?
It's static, so it's already initialized.
Maybe it is, but I'd rather keep it as is, until we have actual support for radio buttons.
I didn't want to do another loop just to clear the list.
We can split it up once it's useful. Right now I don't see where we could need it in comctl32.
Finally, are you adding the rest from my latest patch-set too, or should I adapt the missing parts?
No, please go ahead.
Regards, Fabian Maurer