From 9793473b10cc2f49713286207ab39820d49d9693 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 8 Jul 2015 15:57:45 +0800 Subject: [PATCH] Show custom buttons as links --- atom/browser/ui/message_box_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/browser/ui/message_box_win.cc b/atom/browser/ui/message_box_win.cc index eaa002cd8d..cdedf3618c 100644 --- a/atom/browser/ui/message_box_win.cc +++ b/atom/browser/ui/message_box_win.cc @@ -76,7 +76,8 @@ int ShowMessageBoxUTF16(HWND parent, const base::string16& message, const base::string16& detail, const gfx::ImageSkia& icon) { - TASKDIALOG_FLAGS flags = TDF_SIZE_TO_CONTENT; // show all content. + TASKDIALOG_FLAGS flags = TDF_SIZE_TO_CONTENT | // show all content. + TDF_USE_COMMAND_LINKS; // custom buttons as links. if (cancel_id != 0) flags |= TDF_ALLOW_DIALOG_CANCELLATION; // allow dialog to be cancelled.