Bring message box to the front.

This commit is contained in:
Nuno Cruces 2024-07-05 00:20:01 +01:00
parent baeb48d016
commit e388e6cd8d
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ const (
MB_DEFBUTTON1 = windows.MB_DEFBUTTON1
MB_DEFBUTTON2 = windows.MB_DEFBUTTON2
MB_DEFBUTTON3 = windows.MB_DEFBUTTON3
MB_SETFOREGROUND = windows.MB_SETFOREGROUND
// Window messages
WM_DESTROY = 0x0002

View file

@ -7,7 +7,7 @@ import (
)
func message(kind messageKind, text string, opts options) error {
var flags uint32
var flags uint32 = win.MB_SETFOREGROUND
switch {
case kind == questionKind && opts.extraButton != nil: