From 74c851754c52adf74e611bc1533c8eb481439d84 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 2 Jun 2014 17:12:10 -0400 Subject: Gave message boxes on Windows the MB_TASKMODAL style, which does event modality to the other windows in the program. Does not affect resizes. --- dialog_windows.go | 1 + 1 file changed, 1 insertion(+) (limited to 'dialog_windows.go') diff --git a/dialog_windows.go b/dialog_windows.go index ab1c2dd..9d529a5 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -21,6 +21,7 @@ func _msgBox(primarytext string, secondarytext string, uType uint32) (result int if secondarytext != "" { text += "\n\n" + secondarytext } + uType |= _MB_TASKMODAL // make modal to every window in the program (they're all windows of the uitask, which is a single thread) ret := make(chan uiret) defer close(ret) uitask <- &uimsg{ -- cgit v1.2.3