From: Cheng Zhao Date: Wed, 8 Jul 2015 07:57:45 +0000 (+0800) Subject: Show custom buttons as links X-Git-Tag: v0.30.0~45^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9793473b10cc2f49713286207ab39820d49d9693;p=electron.git Show custom buttons as links --- diff --git a/atom/browser/ui/message_box_win.cc b/atom/browser/ui/message_box_win.cc index eaa002cd..cdedf361 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.