summaryrefslogtreecommitdiff
path: root/dialog_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'dialog_windows.go')
-rw-r--r--dialog_windows.go1
1 files changed, 1 insertions, 0 deletions
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{