Release 0.2.0
[wine/hacks.git] / win.h
blob93162ab6576045137458c38c9ccdbfcc05de0328
1 /*
2 * Window definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef WIN_H
8 #define WIN_H
10 #include <X11/Intrinsic.h>
11 #include <X11/StringDefs.h>
12 #include <X11/Core.h>
14 #include "windows.h"
17 #define WND_MAGIC 0x444e4957 /* 'WIND' */
20 typedef struct tagWND
22 HWND hwndNext; /* Next sibling */
23 HWND hwndChild; /* First child */
24 DWORD dwMagic; /* Magic number (must be WND_MAGIC) */
25 HWND hwndParent; /* Window parent (from CreateWindow) */
26 HWND hwndOwner; /* Window owner */
27 HCLASS hClass; /* Window class */
28 HANDLE hInstance; /* Window hInstance (from CreateWindow) */
29 RECT rectClient; /* Window client area screen coords */
30 RECT rectWindow; /* Window whole area screen coords */
31 HRGN hrgnUpdate; /* Update region */
32 HWND hwndLastActive; /* Last active popup hwnd */
33 FARPROC lpfnWndProc; /* Window procedure */
34 DWORD dwStyle; /* Window style (from CreateWindow) */
35 HANDLE hDCE; /* Window DC Entry (if CS_OWNDC) */
36 HMENU hmenuSystem; /* System menu */
37 WORD wIDmenu; /* ID or hmenu (from CreateWindow) */
38 Widget shellWidget; /* For top-level windows */
39 Widget winWidget; /* For all windows */
40 WORD wExtra[1]; /* Window extra bytes */
41 } WND;
44 /* The caller must GlobalUnlock the pointer returned
45 * by this function (except when NULL).
47 WND * WIN_FindWndPtr( HWND hwnd );
50 #endif /* WIN_H */