Skip to content

Commit

Permalink
Bring message box to the front.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Jul 4, 2024
1 parent baeb48d commit e388e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/win/user32.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion msg_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e388e6c

Please sign in to comment.