Bring message box to the front.
This commit is contained in:
parent
baeb48d016
commit
e388e6cd8d
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ const (
|
||||||
MB_DEFBUTTON1 = windows.MB_DEFBUTTON1
|
MB_DEFBUTTON1 = windows.MB_DEFBUTTON1
|
||||||
MB_DEFBUTTON2 = windows.MB_DEFBUTTON2
|
MB_DEFBUTTON2 = windows.MB_DEFBUTTON2
|
||||||
MB_DEFBUTTON3 = windows.MB_DEFBUTTON3
|
MB_DEFBUTTON3 = windows.MB_DEFBUTTON3
|
||||||
|
MB_SETFOREGROUND = windows.MB_SETFOREGROUND
|
||||||
|
|
||||||
// Window messages
|
// Window messages
|
||||||
WM_DESTROY = 0x0002
|
WM_DESTROY = 0x0002
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func message(kind messageKind, text string, opts options) error {
|
func message(kind messageKind, text string, opts options) error {
|
||||||
var flags uint32
|
var flags uint32 = win.MB_SETFOREGROUND
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case kind == questionKind && opts.extraButton != nil:
|
case kind == questionKind && opts.extraButton != nil:
|
||||||
|
|
Loading…
Reference in a new issue