mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Show custom buttons as links
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user