493{
497 const WCHAR button_format[] = {
'%',
'0',
'2',
'd',0};
498
501
505
506
508 {
511
514 }
516
517
519 {
522
525 }
527
528
529
530
531 info.nDefaultButton = 0;
544
545
547 {
548 info.dwFlags = command_link_flags[
i];
549
550
551 info.nDefaultButton = 0xff;
553 info.pButtons = custom_buttons;
555 "default button: invalid default, with common buttons - 1");
556
557 info.nDefaultButton = -1;
559
560 info.nDefaultButton = -2;
562 "default button: invalid default, with common buttons - 3");
563
564
565 info.dwCommonButtons = 0;
567 "default button: invalid default, no common buttons");
568
569
574
575
578 }
579
580
581 info.nDefaultButton = 0;
586 info.pRadioButtons = radio_buttons;
587
588
590 "default radio button: default first radio button");
591
592
595 "default radio button: default radio button");
596
597
598 info.nDefaultRadioButton = -2;
600 "default radio button: default radio button with id -2");
601
602
605 "default radio button: radio button after clicking");
606
607
610 "default radio button: disable radio button before clicking");
611
612
616 "default radio button: no default radio flag");
617
618
619
620 info.nDefaultRadioButton = 0;
623 "default radio button: no default radio id and flag");
624
625
626
627 info.nDefaultRadioButton = 0xff;
630 "default radio button: no default flag, invalid id");
631
632 info.nDefaultRadioButton = 0;
635 "radio button: manually click radio button with negative id");
636
637
639 info.pButtons = custom_buttons;
641 info.pRadioButtons = radio_buttons;
642 info.dwCommonButtons = 0;
645
646
647
649 "sends click to non-existent buttons with WM_COMMAND");
650
651
653}
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,...)