492{
496 const WCHAR button_format[] = {
'%',
'0',
'2',
'd',0};
497
500
504
505
507 {
510
513 }
515
516
518 {
521
524 }
526
527
528
529
530 info.nDefaultButton = 0;
543
544
546 {
547 info.dwFlags = command_link_flags[
i];
548
549
550 info.nDefaultButton = 0xff;
552 info.pButtons = custom_buttons;
554 "default button: invalid default, with common buttons - 1");
555
556 info.nDefaultButton = -1;
558
559 info.nDefaultButton = -2;
561 "default button: invalid default, with common buttons - 3");
562
563
564 info.dwCommonButtons = 0;
566 "default button: invalid default, no common buttons");
567
568
573
574
577 }
578
579
580 info.nDefaultButton = 0;
585 info.pRadioButtons = radio_buttons;
586
587
589 "default radio button: default first radio button");
590
591
594 "default radio button: default radio button");
595
596
597 info.nDefaultRadioButton = -2;
599 "default radio button: default radio button with id -2");
600
601
604 "default radio button: radio button after clicking");
605
606
609 "default radio button: disable radio button before clicking");
610
611
615 "default radio button: no default radio flag");
616
617
618
619 info.nDefaultRadioButton = 0;
622 "default radio button: no default radio id and flag");
623
624
625
626 info.nDefaultRadioButton = 0xff;
629 "default radio button: no default flag, invalid id");
630
631 info.nDefaultRadioButton = 0;
634 "radio button: manually click radio button with negative id");
635
636
638 info.pButtons = custom_buttons;
640 info.pRadioButtons = radio_buttons;
641 info.dwCommonButtons = 0;
644
645
646
648 "sends click to non-existent buttons with WM_COMMAND");
649
650
652}
static const struct message_info msg_return_press_retry[]
static const struct message_info msg_return_default_radio_button_clicking_disabled[]
static const struct message_info msg_press_nonexistent_buttons_with_command[]
static const struct message_info msg_return_press_yes[]
static const struct message_info msg_return_press_negative_id_radio_button[]
#define run_test(info, expect_button, expect_radio_button, verification_checked, seq, context)
static HRESULT CALLBACK taskdialog_callback_proc(HWND hwnd, UINT notification, WPARAM wParam, LPARAM lParam, LONG_PTR ref_data)
static const struct message_info msg_return_press_no[]
static const struct message_info msg_return_press_ok[]
static const struct message_info msg_return_default_radio_button_2[]
static const struct message_info msg_return_no_default_radio_button_id_and_flag[]
#define TEST_NUM_RADIO_BUTTONS
static const struct message_info msg_return_first_radio_button[]
static const struct message_info msg_return_no_default_radio_button_flag[]
static const struct message_info msg_return_press_custom10[]
static const struct message_info msg_return_default_radio_button_3[]
static const struct message_info msg_press_nonexistent_buttons[]
static const struct message_info msg_return_default_radio_button_1[]
static const struct message_info msg_press_nonexistent_radio_button[]
static const struct message_info msg_return_press_custom1[]
static const struct message_info msg_return_press_cancel[]
#define ID_START_RADIO_BUTTON
static const struct message_info msg_return_press_custom4[]
struct _TASKDIALOGCONFIG TASKDIALOGCONFIG
@ TDF_NO_DEFAULT_RADIO_BUTTON
@ TDF_USE_COMMAND_LINKS_NO_ICON
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)