102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
win32_window.h
Go to the documentation of this file.
1
/* Recovered declarations; ABI and original layout preserved. */
2
#ifndef PCDOGS_PLATFORM_WIN32_WINDOW_H
3
#define PCDOGS_PLATFORM_WIN32_WINDOW_H
4
#include "
pcdogs/platform/sdk.h
"
5
6
enum
MESSAGEBOX_RESULT
: uint32_t
7
{
8
PC_ENUM_MESSAGEBOX_RESULT_ZERO
= 0,
9
#ifndef IDOK
10
IDOK
= 0x1,
11
#endif
12
#ifndef IDCANCEL
13
IDCANCEL
= 0x2,
14
#endif
15
#ifndef IDABORT
16
IDABORT
= 0x3,
17
#endif
18
#ifndef IDRETRY
19
IDRETRY
= 0x4,
20
#endif
21
#ifndef IDIGNORE
22
IDIGNORE
= 0x5,
23
#endif
24
#ifndef IDYES
25
IDYES
= 0x6,
26
#endif
27
#ifndef IDNO
28
IDNO
= 0x7,
29
#endif
30
#ifndef IDCLOSE
31
IDCLOSE
= 0x8,
32
#endif
33
#ifndef IDHELP
34
IDHELP
= 0x9,
35
#endif
36
#ifndef IDTRYAGAIN
37
IDTRYAGAIN
= 0xa,
38
#endif
39
#ifndef IDCONTINUE
40
IDCONTINUE
= 0xb,
41
#endif
42
#ifndef IDASYNC
43
IDASYNC
= 0x7d01,
44
#endif
45
#ifndef IDTIMEOUT
46
IDTIMEOUT
= 0x7d00
47
#endif
48
};
49
50
_Static_assert
(
sizeof
(
enum
MESSAGEBOX_RESULT
) == 4,
"MESSAGEBOX_RESULT enum size"
);
51
52
typedef
uint32_t
MESSAGEBOX_STYLE
;
53
54
#ifndef MB_ABORTRETRYIGNORE
55
#define MB_ABORTRETRYIGNORE ((uint32_t)(0x2))
56
#endif
57
#ifndef MB_CANCELTRYCONTINUE
58
#define MB_CANCELTRYCONTINUE ((uint32_t)(0x6))
59
#endif
60
#ifndef MB_HELP
61
#define MB_HELP ((uint32_t)(0x4000))
62
#endif
63
#ifndef MB_OK
64
#define MB_OK ((uint32_t)(0x0))
65
#endif
66
#ifndef MB_OKCANCEL
67
#define MB_OKCANCEL ((uint32_t)(0x1))
68
#endif
69
#ifndef MB_RETRYCANCEL
70
#define MB_RETRYCANCEL ((uint32_t)(0x5))
71
#endif
72
#ifndef MB_YESNO
73
#define MB_YESNO ((uint32_t)(0x4))
74
#endif
75
#ifndef MB_YESNOCANCEL
76
#define MB_YESNOCANCEL ((uint32_t)(0x3))
77
#endif
78
#ifndef MB_ICONHAND
79
#define MB_ICONHAND ((uint32_t)(0x10))
80
#endif
81
#ifndef MB_ICONQUESTION
82
#define MB_ICONQUESTION ((uint32_t)(0x20))
83
#endif
84
#ifndef MB_ICONEXCLAMATION
85
#define MB_ICONEXCLAMATION ((uint32_t)(0x30))
86
#endif
87
#ifndef MB_ICONASTERISK
88
#define MB_ICONASTERISK ((uint32_t)(0x40))
89
#endif
90
#ifndef MB_USERICON
91
#define MB_USERICON ((uint32_t)(0x80))
92
#endif
93
#ifndef MB_ICONWARNING
94
#define MB_ICONWARNING ((uint32_t)(0x30))
95
#endif
96
#ifndef MB_ICONERROR
97
#define MB_ICONERROR ((uint32_t)(0x10))
98
#endif
99
#ifndef MB_ICONINFORMATION
100
#define MB_ICONINFORMATION ((uint32_t)(0x40))
101
#endif
102
#ifndef MB_ICONSTOP
103
#define MB_ICONSTOP ((uint32_t)(0x10))
104
#endif
105
#ifndef MB_DEFBUTTON1
106
#define MB_DEFBUTTON1 ((uint32_t)(0x0))
107
#endif
108
#ifndef MB_DEFBUTTON2
109
#define MB_DEFBUTTON2 ((uint32_t)(0x100))
110
#endif
111
#ifndef MB_DEFBUTTON3
112
#define MB_DEFBUTTON3 ((uint32_t)(0x200))
113
#endif
114
#ifndef MB_DEFBUTTON4
115
#define MB_DEFBUTTON4 ((uint32_t)(0x300))
116
#endif
117
#ifndef MB_APPLMODAL
118
#define MB_APPLMODAL ((uint32_t)(0x0))
119
#endif
120
#ifndef MB_SYSTEMMODAL
121
#define MB_SYSTEMMODAL ((uint32_t)(0x1000))
122
#endif
123
#ifndef MB_TASKMODAL
124
#define MB_TASKMODAL ((uint32_t)(0x2000))
125
#endif
126
#ifndef MB_NOFOCUS
127
#define MB_NOFOCUS ((uint32_t)(0x8000))
128
#endif
129
#ifndef MB_SETFOREGROUND
130
#define MB_SETFOREGROUND ((uint32_t)(0x10000))
131
#endif
132
#ifndef MB_DEFAULT_DESKTOP_ONLY
133
#define MB_DEFAULT_DESKTOP_ONLY ((uint32_t)(0x20000))
134
#endif
135
#ifndef MB_TOPMOST
136
#define MB_TOPMOST ((uint32_t)(0x40000))
137
#endif
138
#ifndef MB_RIGHT
139
#define MB_RIGHT ((uint32_t)(0x80000))
140
#endif
141
#ifndef MB_RTLREADING
142
#define MB_RTLREADING ((uint32_t)(0x100000))
143
#endif
144
#ifndef MB_SERVICE_NOTIFICATION
145
#define MB_SERVICE_NOTIFICATION ((uint32_t)(0x200000))
146
#endif
147
#ifndef MB_SERVICE_NOTIFICATION_NT3X
148
#define MB_SERVICE_NOTIFICATION_NT3X ((uint32_t)(0x40000))
149
#endif
150
#ifndef MB_TYPEMASK
151
#define MB_TYPEMASK ((uint32_t)(0xf))
152
#endif
153
#ifndef MB_ICONMASK
154
#define MB_ICONMASK ((uint32_t)(0xf0))
155
#endif
156
#ifndef MB_DEFMASK
157
#define MB_DEFMASK ((uint32_t)(0xf00))
158
#endif
159
#ifndef MB_MODEMASK
160
#define MB_MODEMASK ((uint32_t)(MB_SYSTEMMODAL | MB_TASKMODAL))
161
#endif
162
#ifndef MB_MISCMASK
163
#define MB_MISCMASK ((uint32_t)(MB_HELP | MB_NOFOCUS))
164
#endif
165
166
_Static_assert
(
sizeof
(
MESSAGEBOX_STYLE
) == 4,
"MESSAGEBOX_STYLE size"
);
167
168
typedef
uint32_t
PEEK_MESSAGE_REMOVE_TYPE
;
169
170
#ifndef PM_NOREMOVE
171
#define PM_NOREMOVE ((uint32_t)(0x0))
172
#endif
173
#ifndef PM_REMOVE
174
#define PM_REMOVE ((uint32_t)(0x1))
175
#endif
176
#ifndef PM_NOYIELD
177
#define PM_NOYIELD ((uint32_t)(0x2))
178
#endif
179
#ifndef PM_QS_INPUT
180
#define PM_QS_INPUT ((uint32_t)(0x4070000))
181
#endif
182
#ifndef PM_QS_POSTMESSAGE
183
#define PM_QS_POSTMESSAGE ((uint32_t)(0x980000))
184
#endif
185
#ifndef PM_QS_PAINT
186
#define PM_QS_PAINT ((uint32_t)(0x200000))
187
#endif
188
#ifndef PM_QS_SENDMESSAGE
189
#define PM_QS_SENDMESSAGE ((uint32_t)(0x400000))
190
#endif
191
192
_Static_assert
(
sizeof
(
PEEK_MESSAGE_REMOVE_TYPE
) == 4,
"PEEK_MESSAGE_REMOVE_TYPE size"
);
193
194
enum
SHOW_WINDOW_CMD
: uint32_t
195
{
196
PC_ENUM_SHOW_WINDOW_CMD_ZERO
= 0,
197
#ifndef SW_HIDE
198
SW_HIDE
= 0x0,
199
#endif
200
#ifndef SW_SHOWNORMAL
201
SW_SHOWNORMAL
= 0x1,
202
#endif
203
#ifndef SW_NORMAL
204
SW_NORMAL
= 0x1,
205
#endif
206
#ifndef SW_SHOWMINIMIZED
207
SW_SHOWMINIMIZED
= 0x2,
208
#endif
209
#ifndef SW_SHOWMAXIMIZED
210
SW_SHOWMAXIMIZED
= 0x3,
211
#endif
212
#ifndef SW_MAXIMIZE
213
SW_MAXIMIZE
= 0x3,
214
#endif
215
#ifndef SW_SHOWNOACTIVATE
216
SW_SHOWNOACTIVATE
= 0x4,
217
#endif
218
#ifndef SW_SHOW
219
SW_SHOW
= 0x5,
220
#endif
221
#ifndef SW_MINIMIZE
222
SW_MINIMIZE
= 0x6,
223
#endif
224
#ifndef SW_SHOWMINNOACTIVE
225
SW_SHOWMINNOACTIVE
= 0x7,
226
#endif
227
#ifndef SW_SHOWNA
228
SW_SHOWNA
= 0x8,
229
#endif
230
#ifndef SW_RESTORE
231
SW_RESTORE
= 0x9,
232
#endif
233
#ifndef SW_SHOWDEFAULT
234
SW_SHOWDEFAULT
= 0xa,
235
#endif
236
#ifndef SW_FORCEMINIMIZE
237
SW_FORCEMINIMIZE
= 0xb,
238
#endif
239
#ifndef SW_MAX
240
SW_MAX
= 0xb
241
#endif
242
};
243
244
_Static_assert
(
sizeof
(
enum
SHOW_WINDOW_CMD
) == 4,
"SHOW_WINDOW_CMD enum size"
);
245
246
typedef
uint32_t
WINDOW_EX_STYLE
;
247
248
#ifndef WS_EX_DLGMODALFRAME
249
#define WS_EX_DLGMODALFRAME ((uint32_t)(0x1))
250
#endif
251
#ifndef WS_EX_NOPARENTNOTIFY
252
#define WS_EX_NOPARENTNOTIFY ((uint32_t)(0x4))
253
#endif
254
#ifndef WS_EX_TOPMOST
255
#define WS_EX_TOPMOST ((uint32_t)(0x8))
256
#endif
257
#ifndef WS_EX_ACCEPTFILES
258
#define WS_EX_ACCEPTFILES ((uint32_t)(0x10))
259
#endif
260
#ifndef WS_EX_TRANSPARENT
261
#define WS_EX_TRANSPARENT ((uint32_t)(0x20))
262
#endif
263
#ifndef WS_EX_MDICHILD
264
#define WS_EX_MDICHILD ((uint32_t)(0x40))
265
#endif
266
#ifndef WS_EX_TOOLWINDOW
267
#define WS_EX_TOOLWINDOW ((uint32_t)(0x80))
268
#endif
269
#ifndef WS_EX_WINDOWEDGE
270
#define WS_EX_WINDOWEDGE ((uint32_t)(0x100))
271
#endif
272
#ifndef WS_EX_CLIENTEDGE
273
#define WS_EX_CLIENTEDGE ((uint32_t)(0x200))
274
#endif
275
#ifndef WS_EX_CONTEXTHELP
276
#define WS_EX_CONTEXTHELP ((uint32_t)(0x400))
277
#endif
278
#ifndef WS_EX_RIGHT
279
#define WS_EX_RIGHT ((uint32_t)(0x1000))
280
#endif
281
#ifndef WS_EX_LEFT
282
#define WS_EX_LEFT ((uint32_t)(0x0))
283
#endif
284
#ifndef WS_EX_RTLREADING
285
#define WS_EX_RTLREADING ((uint32_t)(0x2000))
286
#endif
287
#ifndef WS_EX_LTRREADING
288
#define WS_EX_LTRREADING ((uint32_t)(0x0))
289
#endif
290
#ifndef WS_EX_LEFTSCROLLBAR
291
#define WS_EX_LEFTSCROLLBAR ((uint32_t)(0x4000))
292
#endif
293
#ifndef WS_EX_RIGHTSCROLLBAR
294
#define WS_EX_RIGHTSCROLLBAR ((uint32_t)(0x0))
295
#endif
296
#ifndef WS_EX_CONTROLPARENT
297
#define WS_EX_CONTROLPARENT ((uint32_t)(0x10000))
298
#endif
299
#ifndef WS_EX_STATICEDGE
300
#define WS_EX_STATICEDGE ((uint32_t)(0x20000))
301
#endif
302
#ifndef WS_EX_APPWINDOW
303
#define WS_EX_APPWINDOW ((uint32_t)(0x40000))
304
#endif
305
#ifndef WS_EX_OVERLAPPEDWINDOW
306
#define WS_EX_OVERLAPPEDWINDOW ((uint32_t)(WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE))
307
#endif
308
#ifndef WS_EX_PALETTEWINDOW
309
#define WS_EX_PALETTEWINDOW ((uint32_t)(WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST))
310
#endif
311
#ifndef WS_EX_LAYERED
312
#define WS_EX_LAYERED ((uint32_t)(0x80000))
313
#endif
314
#ifndef WS_EX_NOINHERITLAYOUT
315
#define WS_EX_NOINHERITLAYOUT ((uint32_t)(0x100000))
316
#endif
317
#ifndef WS_EX_NOREDIRECTIONBITMAP
318
#define WS_EX_NOREDIRECTIONBITMAP ((uint32_t)(0x200000))
319
#endif
320
#ifndef WS_EX_LAYOUTRTL
321
#define WS_EX_LAYOUTRTL ((uint32_t)(0x400000))
322
#endif
323
#ifndef WS_EX_COMPOSITED
324
#define WS_EX_COMPOSITED ((uint32_t)(0x2000000))
325
#endif
326
#ifndef WS_EX_NOACTIVATE
327
#define WS_EX_NOACTIVATE ((uint32_t)(0x8000000))
328
#endif
329
330
_Static_assert
(
sizeof
(
WINDOW_EX_STYLE
) == 4,
"WINDOW_EX_STYLE size"
);
331
332
typedef
uint32_t
WINDOW_STYLE
;
333
334
#ifndef WS_OVERLAPPED
335
#define WS_OVERLAPPED ((uint32_t)(0x0))
336
#endif
337
#ifndef WS_POPUP
338
#define WS_POPUP ((uint32_t)(0x80000000))
339
#endif
340
#ifndef WS_CHILD
341
#define WS_CHILD ((uint32_t)(0x40000000))
342
#endif
343
#ifndef WS_MINIMIZE
344
#define WS_MINIMIZE ((uint32_t)(0x20000000))
345
#endif
346
#ifndef WS_VISIBLE
347
#define WS_VISIBLE ((uint32_t)(0x10000000))
348
#endif
349
#ifndef WS_DISABLED
350
#define WS_DISABLED ((uint32_t)(0x8000000))
351
#endif
352
#ifndef WS_CLIPSIBLINGS
353
#define WS_CLIPSIBLINGS ((uint32_t)(0x4000000))
354
#endif
355
#ifndef WS_CLIPCHILDREN
356
#define WS_CLIPCHILDREN ((uint32_t)(0x2000000))
357
#endif
358
#ifndef WS_MAXIMIZE
359
#define WS_MAXIMIZE ((uint32_t)(0x1000000))
360
#endif
361
#ifndef WS_CAPTION
362
#define WS_CAPTION ((uint32_t)(WS_BORDER | WS_DLGFRAME))
363
#endif
364
#ifndef WS_BORDER
365
#define WS_BORDER ((uint32_t)(0x800000))
366
#endif
367
#ifndef WS_DLGFRAME
368
#define WS_DLGFRAME ((uint32_t)(0x400000))
369
#endif
370
#ifndef WS_VSCROLL
371
#define WS_VSCROLL ((uint32_t)(0x200000))
372
#endif
373
#ifndef WS_HSCROLL
374
#define WS_HSCROLL ((uint32_t)(0x100000))
375
#endif
376
#ifndef WS_SYSMENU
377
#define WS_SYSMENU ((uint32_t)(0x80000))
378
#endif
379
#ifndef WS_THICKFRAME
380
#define WS_THICKFRAME ((uint32_t)(0x40000))
381
#endif
382
#ifndef WS_GROUP
383
#define WS_GROUP ((uint32_t)(0x20000))
384
#endif
385
#ifndef WS_TABSTOP
386
#define WS_TABSTOP ((uint32_t)(0x10000))
387
#endif
388
#ifndef WS_MINIMIZEBOX
389
#define WS_MINIMIZEBOX ((uint32_t)(0x20000))
390
#endif
391
#ifndef WS_MAXIMIZEBOX
392
#define WS_MAXIMIZEBOX ((uint32_t)(0x10000))
393
#endif
394
#ifndef WS_TILED
395
#define WS_TILED ((uint32_t)(0x0))
396
#endif
397
#ifndef WS_ICONIC
398
#define WS_ICONIC ((uint32_t)(0x20000000))
399
#endif
400
#ifndef WS_SIZEBOX
401
#define WS_SIZEBOX ((uint32_t)(0x40000))
402
#endif
403
#ifndef WS_TILEDWINDOW
404
#define WS_TILEDWINDOW ((uint32_t)(WS_OVERLAPPEDWINDOW))
405
#endif
406
#ifndef WS_OVERLAPPEDWINDOW
407
#define WS_OVERLAPPEDWINDOW ((uint32_t)(WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX))
408
#endif
409
#ifndef WS_POPUPWINDOW
410
#define WS_POPUPWINDOW ((uint32_t)(WS_POPUP | WS_BORDER | WS_SYSMENU))
411
#endif
412
#ifndef WS_CHILDWINDOW
413
#define WS_CHILDWINDOW ((uint32_t)(0x40000000))
414
#endif
415
#ifndef WS_ACTIVECAPTION
416
#define WS_ACTIVECAPTION ((uint32_t)(0x1))
417
#endif
418
419
_Static_assert
(
sizeof
(
WINDOW_STYLE
) == 4,
"WINDOW_STYLE size"
);
420
421
#endif
/* PCDOGS_PLATFORM_WIN32_WINDOW_H */
sdk.h
WINDOW_EX_STYLE
uint32_t WINDOW_EX_STYLE
Definition
win32_window.h:246
PEEK_MESSAGE_REMOVE_TYPE
uint32_t PEEK_MESSAGE_REMOVE_TYPE
Definition
win32_window.h:168
MESSAGEBOX_STYLE
uint32_t MESSAGEBOX_STYLE
Definition
win32_window.h:52
MESSAGEBOX_RESULT
MESSAGEBOX_RESULT
Definition
win32_window.h:7
IDTRYAGAIN
@ IDTRYAGAIN
Definition
win32_window.h:37
PC_ENUM_MESSAGEBOX_RESULT_ZERO
@ PC_ENUM_MESSAGEBOX_RESULT_ZERO
Definition
win32_window.h:8
IDCLOSE
@ IDCLOSE
Definition
win32_window.h:31
IDCANCEL
@ IDCANCEL
Definition
win32_window.h:13
IDABORT
@ IDABORT
Definition
win32_window.h:16
IDTIMEOUT
@ IDTIMEOUT
Definition
win32_window.h:46
IDRETRY
@ IDRETRY
Definition
win32_window.h:19
IDHELP
@ IDHELP
Definition
win32_window.h:34
IDASYNC
@ IDASYNC
Definition
win32_window.h:43
IDNO
@ IDNO
Definition
win32_window.h:28
IDCONTINUE
@ IDCONTINUE
Definition
win32_window.h:40
IDOK
@ IDOK
Definition
win32_window.h:10
IDYES
@ IDYES
Definition
win32_window.h:25
IDIGNORE
@ IDIGNORE
Definition
win32_window.h:22
WINDOW_STYLE
uint32_t WINDOW_STYLE
Definition
win32_window.h:332
SHOW_WINDOW_CMD
SHOW_WINDOW_CMD
Definition
win32_window.h:195
SW_MAX
@ SW_MAX
Definition
win32_window.h:240
SW_HIDE
@ SW_HIDE
Definition
win32_window.h:198
SW_MINIMIZE
@ SW_MINIMIZE
Definition
win32_window.h:222
SW_SHOW
@ SW_SHOW
Definition
win32_window.h:219
SW_SHOWMINIMIZED
@ SW_SHOWMINIMIZED
Definition
win32_window.h:207
SW_SHOWNORMAL
@ SW_SHOWNORMAL
Definition
win32_window.h:201
SW_SHOWMINNOACTIVE
@ SW_SHOWMINNOACTIVE
Definition
win32_window.h:225
SW_SHOWNOACTIVATE
@ SW_SHOWNOACTIVATE
Definition
win32_window.h:216
SW_FORCEMINIMIZE
@ SW_FORCEMINIMIZE
Definition
win32_window.h:237
PC_ENUM_SHOW_WINDOW_CMD_ZERO
@ PC_ENUM_SHOW_WINDOW_CMD_ZERO
Definition
win32_window.h:196
SW_NORMAL
@ SW_NORMAL
Definition
win32_window.h:204
SW_MAXIMIZE
@ SW_MAXIMIZE
Definition
win32_window.h:213
SW_SHOWMAXIMIZED
@ SW_SHOWMAXIMIZED
Definition
win32_window.h:210
SW_SHOWNA
@ SW_SHOWNA
Definition
win32_window.h:228
SW_SHOWDEFAULT
@ SW_SHOWDEFAULT
Definition
win32_window.h:234
SW_RESTORE
@ SW_RESTORE
Definition
win32_window.h:231
include
pcdogs
platform
win32_window.h
Generated by
1.17.0