2 (cl:in-package w32apimod
)
4 (define-w32api-module win95.window
:win95.window
)
6 (cl:in-package cl-w32api.module.win95.window
)
8 (require-and-inherit-module "win95.~")
10 (defcfunex-exported ("AdjustWindowRect" AdjustWindowRect
:convention
:stdcall
) :int
15 (defcfunex-exported ("AdjustWindowRectEx" AdjustWindowRectEx
:convention
:stdcall
) :int
19 (arg3 :unsigned-long
))
21 (defcfunex-exported ("ArrangeIconicWindows" ArrangeIconicWindows
:convention
:stdcall
) :unsigned-int
24 (defcfunex-exported ("BeginDeferWindowPos" BeginDeferWindowPos
:convention
:stdcall
) :pointer
27 (defcfunex-exported ("BringWindowToTop" BringWindowToTop
:convention
:stdcall
) :int
30 (defcfunex-exported ("CascadeWindows" CascadeWindows
:convention
:stdcall
) :unsigned-short
37 (defcfunex-exported ("ChildWindowFromPoint" ChildWindowFromPoint
:convention
:stdcall
) :pointer
39 (arg1 (:inline POINT
)))
41 (defcfunex-exported ("ChildWindowFromPointEx" ChildWindowFromPointEx
:convention
:stdcall
) :pointer
43 (arg1 (:inline POINT
))
46 (defcfunex-exported ("CloseWindow" CloseWindow
:convention
:stdcall
) BOOL
49 (defbitfield (WINDOW-STYLES DWORD
)
53 (:CHILDWINDOW
#x40000000
)
54 (:CLIPCHILDREN
#x2000000
)
55 (:CLIPSIBLINGS
#x4000000
)
62 (:MAXIMIZEBOX
#x10000
)
63 (:MINIMIZE
#x20000000
)
64 (:MINIMIZEBOX
#x20000
)
66 (:OVERLAPPEDWINDOW
#xcf0000
)
68 (:POPUPWINDOW
#x80880000
)
74 (:TILEDWINDOW
#xcf0000
)
77 (export 'WINDOW-STYLES
)
79 (defcfunex-exported ("CreateWindowExA" CreateWindowExA
:convention
:stdcall
) :pointer
81 (|lpClassName| ASTRING
)
82 (|lpWindowName| ASTRING
)
83 (|dwStyle| WINDOW-STYLES
)
90 (|hInstance| HINSTANCE
)
94 (defcfunex-exported ("CreateWindowExW" CreateWindowExW
:convention
:stdcall
) HWND
96 (|lpClassName| WSTRING
)
97 (|lpWindowName| WSTRING
)
98 (|dwStyle| WINDOW-STYLES
)
105 (|hInstance| HINSTANCE
)
106 (|lpParam|
:pointer
))
108 (define-abbrev-exported CreateWindowEx CreateWindowExW
)
110 (defmacro-exported CreateWindow
111 (&whole form |lpClassName| |lpWindowName| |dwStyle| |x| |y| |nWidth| |nHeight|
112 |hWndParent| |hMenu| |hInstance| |lpParam|
)
113 (declare (ignore |lpClassName| |lpWindowName| |dwStyle| |x| |y| |nWidth| |nHeight|
114 |hWndParent| |hMenu| |hInstance| |lpParam|
))
115 `(CreateWindowEx ,@(cdr form
)))
117 (defcfunex-exported ("DeferWindowPos" DeferWindowPos
:convention
:stdcall
) :pointer
125 (arg7 :unsigned-int
))
127 (defcfunex-exported ("DestroyWindow" DestroyWindow
:convention
:stdcall
) :int
130 (defcfunex-exported ("EnableWindow" EnableWindow
:convention
:stdcall
) :int
134 (defcfunex-exported ("EndDeferWindowPos" EndDeferWindowPos
:convention
:stdcall
) :int
137 (defcfunex-exported ("EnumWindows" EnumWindows
:convention
:stdcall
) :int
138 (lpEnumFunc :pointer
)
141 (defcfunex-exported ("FindWindowA" FindWindowA
:convention
:stdcall
) :pointer
145 (defcfunex-exported ("FindWindowW" FindWindowW
:convention
:stdcall
) :pointer
149 (defcfunex-exported ("FindWindowExA" FindWindowExA
:convention
:stdcall
) :pointer
155 (defcfunex-exported ("FindWindowExW" FindWindowExW
:convention
:stdcall
) :pointer
161 (defcfunex-exported ("GetClientRect" GetClientRect
:convention
:stdcall
) :int
165 (defcfunex-exported ("GetDesktopWindow" GetDesktopWindow
:convention
:stdcall
) :pointer
)
167 (defcfunex-exported ("GetForegroundWindow" GetForegroundWindow
:convention
:stdcall
) :pointer
)
169 (defcfunex-exported ("GetLastActivePopup" GetLastActivePopup
:convention
:stdcall
) :pointer
172 (defcfunex-exported ("GetTopWindow" GetTopWindow
:convention
:stdcall
) :pointer
175 (defcfunex-exported ("GetWindowTextA" GetWindowTextA
:convention
:stdcall
) :int
180 (defcfunex-exported ("GetWindowTextW" GetWindowTextW
:convention
:stdcall
) :int
185 (defcfunex-exported ("GetWindowTextLengthA" GetWindowTextLengthA
:convention
:stdcall
) :int
188 (defcfunex-exported ("GetWindowTextLengthW" GetWindowTextLengthW
:convention
:stdcall
) :int
191 (defcfunex-exported ("GetWindowThreadProcessId" GetWindowThreadProcessId
:convention
:stdcall
) :unsigned-long
195 (defcfunex-exported ("IsWindow" IsWindow
:convention
:stdcall
) :int
198 (defcfunex-exported ("IsWindowUnicode" IsWindowUnicode
:convention
:stdcall
) :int
201 (defcfunex-exported ("IsWindowVisible" IsWindowVisible
:convention
:stdcall
) :int
204 (defcfunex-exported ("MoveWindow" MoveWindow
:convention
:stdcall
) :int
212 (defcfunex-exported ("OpenIcon" OpenIcon
:convention
:stdcall
) :int
215 (defcfunex-exported ("SetParent" SetParent
:convention
:stdcall
) :pointer
219 (defcfunex-exported ("SetWindowLongA" SetWindowLongA
:convention
:stdcall
) :int32
224 (defcfunex-exported ("SetWindowLongW" SetWindowLongW
:convention
:stdcall
) :int32
229 (defcfunex-exported ("SetWindowPlacement" SetWindowPlacement
:convention
:stdcall
) :int
233 (defcfunex-exported ("SetWindowPos" SetWindowPos
:convention
:stdcall
) :int
240 (arg6 :unsigned-int
))
242 (defcfunex-exported ("SetWindowTextA" SetWindowTextA
:convention
:stdcall
) :int
246 (defcfunex-exported ("SetWindowTextW" SetWindowTextW
:convention
:stdcall
) :int
250 (defcfunex-exported ("ShowOwnedPopups" ShowOwnedPopups
:convention
:stdcall
) :int
254 (defcenum (SHOWWINDOW-FLAGS :int
)
271 (defcfunex-exported ("ShowWindow" ShowWindow
:convention
:stdcall
) BOOL
273 (|nCmdShow| SHOWWINDOW-FLAGS
))
275 (defcfunex-exported ("ShowWindowAsync" ShowWindowAsync
:convention
:stdcall
) BOOL
277 (|nCmdShow| SHOWWINDOW-FLAGS
))
279 (defcfunex-exported ("TileWindows" TileWindows
:convention
:stdcall
) :unsigned-short
286 (defcfunex-exported ("WindowFromPoint" WindowFromPoint
:convention
:stdcall
) :pointer
287 (point (:inline POINT
)))
289 (defcfunex-exported ("WinMain" WinMain
:convention
:stdcall
) :int
295 (defcfunex-exported ("wWinMain" wWinMain
:convention
:stdcall
) :int
303 (defcfunex-exported ("AnyPopup" AnyPopup
:convention
:stdcall
) :int
)