Can we bundle everthing together?
[wine] / include / dce.h
1 /*
2  * USER DCE definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_DCE_H
22 #define __WINE_DCE_H
23
24 #include <windef.h>
25
26 /* internal DCX flags */
27 #define DCX_DCEEMPTY            0x00000800
28 #define DCX_DCEBUSY             0x00001000
29 #define DCX_DCEDIRTY            0x00002000
30 #define DCX_WINDOWPAINT         0x00020000
31
32 typedef enum
33 {
34     DCE_CACHE_DC,   /* This is a cached DC (allocated by USER) */
35     DCE_CLASS_DC,   /* This is a class DC (style CS_CLASSDC) */
36     DCE_WINDOW_DC   /* This is a window DC (style CS_OWNDC) */
37 } DCE_TYPE;
38
39
40 typedef struct tagDCE
41 {
42     struct tagDCE *next;
43     HDC          hDC;
44     HWND         hwndCurrent;
45     HWND         hwndDC;
46     HRGN         hClipRgn;
47     DCE_TYPE       type;
48     DWORD          DCXflags;
49 } DCE;
50
51 extern DCE*  DCE_AllocDCE( HWND hWnd, DCE_TYPE type );
52 extern DCE*  DCE_FreeDCE( DCE *dce );
53 extern void  DCE_FreeWindowDCE( HWND );
54 extern BOOL DCE_InvalidateDCE( HWND, const RECT* );
55
56 #endif  /* __WINE_DCE_H */