MessageBox User32.dll, how to add links (Go programming language)

Viewed 42

I discovered how to create a simple MessageBox in Go using this Stackoverflow answer: https://stackoverflow.com/a/71919136/14997578

This uses the user32 Windows DLL to create it.

The problem is that now I need to add a link to it, witch you can click, obviously. I tried writing the link like normal text but it outputs normal text, too.

Is there a way I can add links to user32.dll MessageBox?

1 Answers

A MessageBox only supports a icon and plain text.

Use a Task dialog (ComCtl v6) and the TDF_ENABLE_HYPERLINKS flag. TaskDialogIndirect is ordinal 345.

Related