summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-25 14:12:57 -0400
committerPietro Gagliardi <[email protected]>2014-05-25 14:12:57 -0400
commit55c5776334f3e64e9c04fa0cbe547d3a65964309 (patch)
tree760c5304cbd151c9f28cacb0fb77127ec354015a
parentbb6befbfa7941206c846568e66639ee4936f51ac (diff)
Stripped constants from dialog_windows.go.
-rw-r--r--dialog_windows.go62
-rw-r--r--zconstants_windows_386.go2
2 files changed, 2 insertions, 62 deletions
diff --git a/dialog_windows.go b/dialog_windows.go
index d0a34ab..ab1c2dd 100644
--- a/dialog_windows.go
+++ b/dialog_windows.go
@@ -11,68 +11,6 @@ import (
// TODO change what the default window titles are?
-// MessageBox button types.
-const (
- _MB_ABORTRETRYIGNORE = 0x00000002
- _MB_CANCELTRYCONTINUE = 0x00000006
- _MB_HELP = 0x00004000
- _MB_OK = 0x00000000
- _MB_OKCANCEL = 0x00000001
- _MB_RETRYCANCEL = 0x00000005
- _MB_YESNO = 0x00000004
- _MB_YESNOCANCEL = 0x00000003
-)
-
-// MessageBox icon types.
-const (
- _MB_ICONEXCLAMATION = 0x00000030
- _MB_ICONWARNING = 0x00000030
- _MB_ICONINFORMATION = 0x00000040
- _MB_ICONASTERISK = 0x00000040
- _MB_ICONQUESTION = 0x00000020
- _MB_ICONSTOP = 0x00000010
- _MB_ICONERROR = 0x00000010
- _MB_ICONHAND = 0x00000010
-)
-
-// MessageBox default button types.
-const (
- _MB_DEFBUTTON1 = 0x00000000
- _MB_DEFBUTTON2 = 0x00000100
- _MB_DEFBUTTON3 = 0x00000200
- _MB_DEFBUTTON4 = 0x00000300
-)
-
-// MessageBox modality types.
-const (
- _MB_APPLMODAL = 0x00000000
- _MB_SYSTEMMODAL = 0x00001000
- _MB_TASKMODAL = 0x00002000
-)
-
-// MessageBox miscellaneous types.
-const (
- _MB_DEFAULT_DESKTOP_ONLY = 0x00020000
- _MB_RIGHT = 0x00080000
- _MB_RTLREADING = 0x00100000
- _MB_SETFOREGROUND = 0x00010000
- _MB_TOPMOST = 0x00040000
- _MB_SERVICE_NOTIFICATION = 0x00200000
-)
-
-// MessageBox return values.
-const (
- _IDABORT = 3
- _IDCANCEL = 2
- _IDCONTINUE = 11
- _IDIGNORE = 5
- _IDNO = 7
- _IDOK = 1
- _IDRETRY = 4
- _IDTRYAGAIN = 10
- _IDYES = 6
-)
-
var (
_messageBox = user32.NewProc("MessageBoxW")
)
diff --git a/zconstants_windows_386.go b/zconstants_windows_386.go
index 26dbba9..3a63ddd 100644
--- a/zconstants_windows_386.go
+++ b/zconstants_windows_386.go
@@ -37,6 +37,8 @@ const _LB_GETSELITEMS = 401
const _LB_GETTEXT = 393
const _LB_GETTEXTLEN = 394
const _LB_INSERTSTRING = 385
+const _MB_ICONERROR = 16
+const _MB_OK = 0
const _MK_LBUTTON = 1
const _MK_MBUTTON = 16
const _MK_RBUTTON = 2