]> khamidou — GitHub mirrors - electron.git/commitdiff
Show custom buttons as links
authorCheng Zhao <zcbenz@gmail.com>
Wed, 8 Jul 2015 07:57:45 +0000 (15:57 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 8 Jul 2015 07:57:45 +0000 (15:57 +0800)
atom/browser/ui/message_box_win.cc

index eaa002cd8d8353fa5bce6b6931ee7641781ed887..cdedf3618ccf30a05ca3aa9aef046d793e2db437 100644 (file)
@@ -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.