Show custom buttons as links

This commit is contained in:
Cheng Zhao 2015-07-08 15:57:45 +08:00
parent a89e5592f2
commit 9793473b10

View file

@ -76,7 +76,8 @@ int ShowMessageBoxUTF16(HWND parent,
const base::string16& message, const base::string16& message,
const base::string16& detail, const base::string16& detail,
const gfx::ImageSkia& icon) { 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) if (cancel_id != 0)
flags |= TDF_ALLOW_DIALOG_CANCELLATION; // allow dialog to be cancelled. flags |= TDF_ALLOW_DIALOG_CANCELLATION; // allow dialog to be cancelled.