Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * USER DCE definitions |
| 3 | * |
| 4 | * Copyright 1993 Alexandre Julliard |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 21 | #ifndef __WINE_DCE_H |
| 22 | #define __WINE_DCE_H |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 23 | |
Patrik Stridvall | 6cc47d4 | 2000-03-08 18:26:56 +0000 | [diff] [blame] | 24 | #include "windef.h" |
| 25 | |
Alexandre Julliard | c7d3931 | 2001-04-18 17:41:57 +0000 | [diff] [blame] | 26 | /* internal DCX flags */ |
Alexandre Julliard | 491502b | 1997-11-01 19:08:16 +0000 | [diff] [blame] | 27 | #define DCX_DCEEMPTY 0x00000800 |
Alexandre Julliard | 1e9ac79 | 1996-06-06 18:38:27 +0000 | [diff] [blame] | 28 | #define DCX_DCEBUSY 0x00001000 |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 29 | #define DCX_DCEDIRTY 0x00002000 |
Alexandre Julliard | 1e9ac79 | 1996-06-06 18:38:27 +0000 | [diff] [blame] | 30 | #define DCX_WINDOWPAINT 0x00020000 |
| 31 | #define DCX_KEEPCLIPRGN 0x00040000 |
| 32 | #define DCX_NOCLIPCHILDREN 0x00080000 |
| 33 | |
Alexandre Julliard | 5f721f8 | 1994-01-04 20:14:34 +0000 | [diff] [blame] | 34 | typedef enum |
| 35 | { |
| 36 | DCE_CACHE_DC, /* This is a cached DC (allocated by USER) */ |
| 37 | DCE_CLASS_DC, /* This is a class DC (style CS_CLASSDC) */ |
| 38 | DCE_WINDOW_DC /* This is a window DC (style CS_OWNDC) */ |
| 39 | } DCE_TYPE; |
| 40 | |
| 41 | |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 42 | typedef struct tagDCE |
| 43 | { |
Alexandre Julliard | 2c69f6d | 1996-09-28 18:11:01 +0000 | [diff] [blame] | 44 | struct tagDCE *next; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 45 | HDC hDC; |
| 46 | HWND hwndCurrent; |
| 47 | HWND hwndDC; |
| 48 | HRGN hClipRgn; |
Alexandre Julliard | 2c69f6d | 1996-09-28 18:11:01 +0000 | [diff] [blame] | 49 | DCE_TYPE type; |
| 50 | DWORD DCXflags; |
Alexandre Julliard | 401710d | 1993-09-04 10:09:32 +0000 | [diff] [blame] | 51 | } DCE; |
| 52 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 53 | extern DCE* DCE_AllocDCE( HWND hWnd, DCE_TYPE type ); |
Alexandre Julliard | 491502b | 1997-11-01 19:08:16 +0000 | [diff] [blame] | 54 | extern DCE* DCE_FreeDCE( DCE *dce ); |
Alexandre Julliard | 0801ffc | 2001-08-24 00:26:59 +0000 | [diff] [blame] | 55 | extern void DCE_FreeWindowDCE( HWND ); |
| 56 | extern INT DCE_ExcludeRgn( HDC, HWND, HRGN ); |
| 57 | extern BOOL DCE_InvalidateDCE( HWND, const RECT* ); |
Alexandre Julliard | 5f721f8 | 1994-01-04 20:14:34 +0000 | [diff] [blame] | 58 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 59 | #endif /* __WINE_DCE_H */ |