4 * Copyright 1993 Alexandre Julliard
14 #define WND_MAGIC 0x444e4957 /* 'WIND' */
16 /* Built-in class names (see _Undocumented_Windows_ p.418) */
17 #define POPUPMENU_CLASS_NAME "#32768" /* PopupMenu */
18 #define DESKTOP_CLASS_NAME "#32769" /* Desktop */
19 #define DIALOG_CLASS_NAME "#32770" /* Dialog */
20 #define WINSWITCH_CLASS_NAME "#32771" /* WinSwitch */
21 #define ICONTITLE_CLASS_NAME "#32772" /* IconTitle */
25 HWND hwndNext
; /* Next sibling */
26 HWND hwndChild
; /* First child */
27 DWORD dwMagic
; /* Magic number (must be WND_MAGIC) */
28 HWND hwndParent
; /* Window parent (from CreateWindow) */
29 HWND hwndOwner
; /* Window owner */
30 HCLASS hClass
; /* Window class */
31 HANDLE hInstance
; /* Window hInstance (from CreateWindow) */
32 RECT rectClient
; /* Client area rel. to parent client area */
33 RECT rectWindow
; /* Whole window rel. to parent client area */
34 RECT rectNormal
; /* Window rect. when in normal state */
35 POINT ptIconPos
; /* Icon position */
36 POINT ptMaxPos
; /* Maximized window position */
37 HANDLE hmemTaskQ
; /* Task queue global memory handle */
38 HRGN hrgnUpdate
; /* Update region */
39 HWND hwndLastActive
; /* Last active popup hwnd */
40 FARPROC lpfnWndProc
; /* Window procedure */
41 DWORD dwStyle
; /* Window style (from CreateWindow) */
42 DWORD dwExStyle
; /* Extended style (from CreateWindowEx) */
43 HANDLE hdce
; /* Window DCE (if CS_OWNDC or CS_CLASSDC) */
44 HMENU hmenuSystem
; /* System menu */
45 void *VScroll
; /* Vertical ScrollBar Struct Pointer */
46 void *HScroll
; /* Horizontal ScrollBar Struct Pointer */
47 WORD wIDmenu
; /* ID or hmenu (from CreateWindow) */
48 HANDLE hText
; /* Handle of window text */
49 WORD flags
; /* Misc. flags (see below) */
50 Window window
; /* X window */
51 HMENU hSysMenu
; /* window's copy of System Menu */
52 WORD wExtra
[1]; /* Window extra bytes */
55 /* WND flags values */
56 #define WIN_ERASE_UPDATERGN 0x01 /* Update region needs erasing */
57 #define WIN_NEEDS_BEGINPAINT 0x02 /* WM_PAINT sent to window */
58 #define WIN_GOT_SIZEMSG 0x04 /* WM_SIZE has been sent to the window */
59 #define WIN_OWN_DC 0x08 /* Win class has style CS_OWNDC */
60 #define WIN_CLASS_DC 0x10 /* Win class has style CS_CLASSDC */
61 #define WIN_DOUBLE_CLICKS 0x20 /* Win class has style CS_DBLCLKS */
62 #define WIN_RESTORE_MAX 0x40 /* Maximize when restoring */
63 #define WIN_INTERNAL_PAINT 0x80 /* Internal WM_PAINT message pending */
65 /* Window functions */
66 WND
*WIN_FindWndPtr( HWND hwnd
);
67 BOOL
WIN_UnlinkWindow( HWND hwnd
);
68 BOOL
WIN_LinkWindow( HWND hwnd
, HWND hwndInsertAfter
);
69 HWND
WIN_FindWinToRepaint( HWND hwnd
);
70 BOOL
WINPOS_IsAnActiveWindow( HWND hwnd
);
71 void WINPOS_ActivateChild( HWND hwnd
);
73 extern Display
* display
;
74 extern Screen
* screen
;
75 extern Window rootWindow
;