mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* USER DCE definitions
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_DCE_H
|
|
#define __WINE_DCE_H
|
|
|
|
#include "win.h"
|
|
|
|
/* additional DCX flags
|
|
*/
|
|
|
|
#define DCX_NORESETATTR 0x00000004
|
|
#define DCX_EXCLUDEUPDATE 0x00000100
|
|
#define DCX_INTERSECTUPDATE 0x00000200
|
|
#define DCX_LOCKWINDOWUPDATE 0x00000400
|
|
#define DCX_NORECOMPUTE 0x00100000
|
|
#define DCX_VALIDATE 0x00200000
|
|
|
|
#define DCX_DCEEMPTY 0x00000800
|
|
#define DCX_DCEBUSY 0x00001000
|
|
#define DCX_DCEDIRTY 0x00002000
|
|
#define DCX_WINDOWPAINT 0x00020000
|
|
#define DCX_KEEPCLIPRGN 0x00040000
|
|
#define DCX_NOCLIPCHILDREN 0x00080000
|
|
|
|
typedef enum
|
|
{
|
|
DCE_CACHE_DC, /* This is a cached DC (allocated by USER) */
|
|
DCE_CLASS_DC, /* This is a class DC (style CS_CLASSDC) */
|
|
DCE_WINDOW_DC /* This is a window DC (style CS_OWNDC) */
|
|
} DCE_TYPE;
|
|
|
|
|
|
typedef struct tagDCE
|
|
{
|
|
struct tagDCE *next;
|
|
HDC hDC;
|
|
HWND hwndCurrent;
|
|
HWND hwndDC;
|
|
HRGN hClipRgn;
|
|
DCE_TYPE type;
|
|
DWORD DCXflags;
|
|
} DCE;
|
|
|
|
|
|
extern void DCE_Init(void);
|
|
extern DCE* DCE_AllocDCE( HWND hWnd, DCE_TYPE type );
|
|
extern DCE* DCE_FreeDCE( DCE *dce );
|
|
extern void DCE_FreeWindowDCE( WND* );
|
|
extern INT16 DCE_ExcludeRgn( HDC, WND*, HRGN );
|
|
extern HRGN DCE_GetVisRgn( HWND, WORD, HWND, WORD );
|
|
extern BOOL DCE_InvalidateDCE( WND*, const RECT* );
|
|
|
|
#endif /* __WINE_DCE_H */
|