2 (cl:in-package w32apimod
)
4 (define-w32api-module win95.dialogbox
:win95.dialogbox
)
6 (cl:in-package cl-w32api.module.win95.dialogbox
)
8 (require-and-inherit-module "win95.~")
9 (require-and-inherit-module "win95.window")
11 (defbitfield-extended (DIALOG-STYLES DWORD
) WINDOW-STYLES
26 (:SHELLFONT
#.
(cl:logior
64 8)))
28 (defcstructex-exported DLGITEMTEMPLATE
29 (style :unsigned-long
)
30 (dwExtendedStyle :unsigned-long
)
39 (defcstructex-exported DLGTEMPLATE
40 (style :unsigned-long
)
41 (dwExtendedStyle :unsigned-long
)
42 (cdit :unsigned-short
)
49 (defcfunex-exported ("CreateDialogIndirectParamA" CreateDialogIndirectParamA
:convention
:stdcall
) HWND
50 (|hInstance| HINSTANCE
)
56 (defcfunex-exported ("CreateDialogIndirectParamW" CreateDialogIndirectParamW
:convention
:stdcall
) HWND
63 (defcfunex-exported ("CreateDialogParamA" CreateDialogParamA
:convention
:stdcall
) :pointer
70 (defcfunex-exported ("CreateDialogParamW" CreateDialogParamW
:convention
:stdcall
) :pointer
77 (defcfunex-exported ("GetDialogBaseUnits" GetDialogBaseUnits
:convention
:stdcall
) :int32
)
79 (defcfunex-exported ("GetDlgCtrlID" GetDlgCtrlID
:convention
:stdcall
) :int
82 (defcfunex-exported ("GetDlgItem" GetDlgItem
:convention
:stdcall
) :pointer
86 (defcfunex-exported ("GetDlgItemInt" GetDlgItemInt
:convention
:stdcall
) :unsigned-int
92 (defcfunex-exported ("GetDlgItemTextA" GetDlgItemTextA
:convention
:stdcall
) :unsigned-int
98 (defcfunex-exported ("GetDlgItemTextW" GetDlgItemTextW
:convention
:stdcall
) :unsigned-int
105 (defbitfield (MESSAGEBOX-FLAGS UINT
)
106 (:USERICON
128) (:ICONASTERISK
64) (:ICONEXCLAMATION
107 #x30
) (:ICONWARNING
#x30
) (:ICONERROR
16) (:ICONHAND
16)
108 (:ICONQUESTION
32) (:OK
0) (:ABORTRETRYIGNORE
2) (:APPLMODAL
0) (:DEFAULT_DESKTOP_ONLY
#x20000
) (:HELP
#x4000
)
109 (:RIGHT
#x80000
) (:RTLREADING
#x100000
) (:TOPMOST
#x40000
) (:DEFBUTTON1
0) (:DEFBUTTON2
256) (:DEFBUTTON3
512)
110 (:DEFBUTTON4
#x300
) (:ICONINFORMATION
64) (:ICONSTOP
16) (:OKCANCEL
1) (:RETRYCANCEL
5) (:SERVICE_NOTIFICATION
#x00200000
)
111 (:SERVICE_NOTIFICATION_NT3X
#x00040000
) (:SETFOREGROUND
#x10000
) (:SYSTEMMODAL
4096) (:TASKMODAL
#x2000
) (:YESNO
4)
112 (:YESNOCANCEL
3) (:ICONMASK
240) (:DEFMASK
3840) (:MODEMASK
#x00003000
) (:MISCMASK
#x0000C000
) (:NOFOCUS
#x00008000
)
115 (defcenum (DIALOGBOX-RETCODE :int
)
116 (:OK
1) (:CANCEL
2) (:ABORT
3) (:RETRY
4) (:IGNORE
5)
117 (:YES
6) (:NO
7) (:CLOSE
8) (:HELP
9))
119 (defcfunex-exported ("MessageBoxA" MessageBoxA
:convention
:stdcall
) DIALOGBOX-RETCODE
122 (|lpCaption| ASTRING
)
123 (|uType| MESSAGEBOX-FLAGS
))
125 (defcfunex-exported ("MessageBoxW" MessageBoxW
:convention
:stdcall
) DIALOGBOX-RETCODE
128 (|lpCaption| WSTRING
)
129 (|uType| MESSAGEBOX-FLAGS
))
131 (define-abbrev-exported MessageBox MessageBoxW
)
133 (defcfunex-exported ("MessageBoxExA" MessageBoxExA
:convention
:stdcall
) :int
138 (arg4 :unsigned-short
))
140 (defcfunex-exported ("MessageBoxExW" MessageBoxExW
:convention
:stdcall
) :int
145 (arg4 :unsigned-short
))
147 (defcfunex-exported ("MessageBoxIndirectA" MessageBoxIndirectA
:convention
:stdcall
) :int
150 (defcfunex-exported ("MessageBoxIndirectW" MessageBoxIndirectW
:convention
:stdcall
) :int
153 (defcfunex-exported ("SendDlgItemMessageA" SendDlgItemMessageA
:convention
:stdcall
) :int32
160 (defcfunex-exported ("SendDlgItemMessageW" SendDlgItemMessageW
:convention
:stdcall
) :int32
167 (defcfunex-exported ("SetDlgItemInt" SetDlgItemInt
:convention
:stdcall
) :int
173 (defcfunex-exported ("SetDlgItemTextA" SetDlgItemTextA
:convention
:stdcall
) :int
178 (defcfunex-exported ("SetDlgItemTextW" SetDlgItemTextW
:convention
:stdcall
) :int