windows: Fix incorrect button ID setting for TaskDialog (#25391)

Closes #22821

It turns out that on Windows, the `Cancel` button should **always** have
a button ID of `2`. Even if the button label is something like "Don't
Cancel", when the user presses the `Esc` key, Windows will still report
that the button with ID `2` was pressed.

Release Notes:

- N/A
10053e2566张小白 committed on 2/22/2025, 3:39:43 PM· committed by GitHubparent7a55da5
1 file changedLine totals unavailable