Release 970824
[wine.git] / include / dce.h
blob4fd109af55449e7c9aa56775da8eb79f07bd6ee8
1 /*
2 * USER DCE definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef __WINE_DCE_H
8 #define __WINE_DCE_H
10 #include "windows.h"
11 #include "win.h"
13 /* additional DCX flags
16 #define DCX_NORESETATTR 0x00000004
17 #define DCX_EXCLUDEUPDATE 0x00000100
18 #define DCX_INTERSECTUPDATE 0x00000200
19 #define DCX_LOCKWINDOWUPDATE 0x00000400
20 #define DCX_NORECOMPUTE 0x00100000
21 #define DCX_VALIDATE 0x00200000
23 #define DCX_DCEBUSY 0x00001000
24 #define DCX_WINDOWPAINT 0x00020000
25 #define DCX_KEEPCLIPRGN 0x00040000
26 #define DCX_NOCLIPCHILDREN 0x00080000
28 typedef enum
30 DCE_CACHE_DC, /* This is a cached DC (allocated by USER) */
31 DCE_CLASS_DC, /* This is a class DC (style CS_CLASSDC) */
32 DCE_WINDOW_DC /* This is a window DC (style CS_OWNDC) */
33 } DCE_TYPE;
36 typedef struct tagDCE
38 struct tagDCE *next;
39 HDC32 hDC;
40 HWND32 hwndCurrent;
41 HWND32 hwndDC;
42 HRGN32 hClipRgn;
43 DCE_TYPE type;
44 DWORD DCXflags;
45 } DCE;
48 extern void DCE_Init(void);
49 extern DCE* DCE_AllocDCE( HWND32 hWnd, DCE_TYPE type );
50 extern void DCE_FreeDCE( DCE *dce );
51 extern INT16 DCE_ExcludeRgn( HDC32, WND*, HRGN32 );
52 extern HRGN32 DCE_GetVisRgn( HWND32, WORD );
53 extern BOOL32 DCE_InvalidateDCE( WND*, RECT32* );
55 #endif /* __WINE_DCE_H */