diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-28 16:37:55 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-28 16:37:55 -0400 |
| commit | affc65a5a402534527c4d4fbc5b381b5b1283445 (patch) | |
| tree | ef34e20694a809577b2d609d9e3ffadfe64bbc12 /dialog_windows.go | |
| parent | 02d6a03ba3a657aa7b50d072771361236bb207a3 (diff) | |
Fixed the build. New API works on Windows! Also removed TODO on dialogs in Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
Diffstat (limited to 'dialog_windows.go')
| -rw-r--r-- | dialog_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dialog_windows.go b/dialog_windows.go index 18de661..5095999 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -11,11 +11,11 @@ var ( _messageBox = user32.NewProc("MessageBoxW") ) -var dialogResponse = map[uintptr]Response{ +var dialogResponses = map[uintptr]Response{ _IDOK: OK, } -func _msgBox(parent *Window, primarytext string, secondarytext string, uType uint32) (result int) { +func _msgBox(parent *Window, primarytext string, secondarytext string, uType uint32) Response { // http://msdn.microsoft.com/en-us/library/windows/desktop/aa511267.aspx says "Use task dialogs whenever appropriate to achieve a consistent look and layout. Task dialogs require Windows Vista® or later, so they aren't suitable for earlier versions of Windows. If you must use a message box, separate the main instruction from the supplemental instruction with two line breaks." text := primarytext if secondarytext != "" { |
