33 #define DCX_USESTYLE 0x00010000 60 ok(
rop == def_rop,
"wrong ROP2 %d after release\n",
rop );
67 for (
i = 0;
i < 20;
i++)
72 ok(
rop == def_rop,
"wrong ROP2 %d after release %p/%p\n",
rop, old_hdc,
hdc );
81 trace(
"hdc %p not found in cache using %p\n", old_hdc, hdcs[0] );
87 for (
i = 0;
i < 20;
i++)
94 "wrong ROP2 %d after release %p/%p\n",
rop, old_hdc,
hdc );
96 ok(
rop == def_rop,
"wrong ROP2 %d after release %p/%p\n",
rop, old_hdc,
hdc );
100 for (
i = 0;
i < 20;
i++)
108 "wrong ROP2 %d after release %p/%p\n",
rop, old_hdc,
hdc );
112 ok(
rop == def_rop,
"wrong ROP2 %d after release %p/%p\n",
rop, old_hdc,
hdc );
122 ok( caps == 0,
"got %d\n", caps );
124 ok( caps == 0,
"got %d\n", caps );
126 ok( caps == 0,
"got %d\n", caps );
131 ok( caps != 0,
"got %d\n", caps );
133 ok( caps != 0,
"got %d\n", caps );
135 ok( caps != 0,
"got %d\n", caps );
138 ok( caps == 0,
"got %d\n", caps );
140 ok( caps == 0,
"got %d\n", caps );
142 ok( caps == 0,
"got %d\n", caps );
156 ok( old_hdc ==
hdc,
"didn't get same DC %p/%p\n", old_hdc,
hdc );
176 ok( old_hdc ==
hdc,
"didn't get same DC %p/%p\n", old_hdc,
hdc );
190 ok( old_hdc ==
hdc,
"didn't get same DC %p/%p\n", old_hdc,
hdc );
355 ok( old_hdc ==
hdc,
"did not get the same hdc %p/%p\n", old_hdc,
hdc );
456 ok( old_hdc ==
hdc,
"did not get the same hdc %p/%p\n", old_hdc,
hdc );
470 ok( cr != -1,
"error drawing outside of window client area\n" );
474 ok(
rect.left == parent_rect.
left,
"rect.left = %d, expected %d\n",
rect.left, parent_rect.
left );
475 ok(
rect.top == parent_rect.
top,
"rect.top = %d, expected %d\n",
rect.top, parent_rect.
top );
494 SetRect( &clip, 25, 25, 50, 50 );
544 ok(dc1 == dc2,
"expected owndc dcs to match\n");
555 HWND hwnd_cache_rtl, hwnd_owndc_rtl, hwnd_classdc_rtl, hwnd_classdc2_rtl;
562 if (!pGetLayout || !pSetLayout)
564 win_skip(
"Don't have SetLayout\n" );
574 win_skip(
"SetLayout not supported\n" );
590 pSetLayout(
hdc, 0 );
605 pSetLayout(
hdc, 0 );
615 pSetLayout(
hdc, 0 );
647 ok(
rop == 0,
"wrong ROP2 %d\n",
rop );
651 ok( !
dc,
"Got a non-NULL DC (%p) for a destroyed window\n",
dc );
653 for (
i = 0;
i < 30;
i++)
656 if (
dc == old_dc)
break;
658 ok(
i < 30,
"DC for destroyed window not reused\n" );
669 ok( old_dc ==
dc,
"wrong DC\n" );
680 ok( !
dc,
"Got a non-NULL DC (%p) for a destroyed window\n",
dc );
683 ok(
dc != 0,
"Got NULL DC\n" );
694 ok( !
dc,
"Got a non-NULL DC (%p) for a destroyed window\n",
dc );
697 ok(
dc != 0,
"Got NULL DC\n" );
704 ok(
rop == 0,
"wrong ROP2 %d\n",
rop );
708 ok( !
dc,
"Got a non-NULL DC (%p) for a destroyed window\n",
dc );
751 400, 0, 100, 100, 0, 0, 0,
NULL );
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
FORCEINLINE VOID SetPixel(_In_ ULONG Left, _In_ ULONG Top, _In_ UCHAR Color)
HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD)
BOOL WINAPI SetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
HDC WINAPI GetDC(_In_opt_ HWND)
HRGN WINAPI CreateRectRgnIndirect(_In_ LPCRECT)
BOOL WINAPI UpdateWindow(_In_ HWND)
static void test_dc_layout(void)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
static void test_dc_visrgn(void)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI ScrollWindow(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT)
int WINAPI SetROP2(_In_ HDC, _In_ int)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
static int rop(int rop, int src, int dst)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
static void test_scroll_window(void)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
HWND WINAPI WindowFromDC(_In_ HDC hDC)
static HWND hwnd_parentdc
const char * wine_dbgstr_rect(const RECT *rect)
static void test_parameters(void)
int WINAPI GetClipBox(_In_ HDC, _Out_ LPRECT)
static void test_invisible_create(void)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
int WINAPI GetRgnBox(_In_ HRGN, _Out_ LPRECT)
int WINAPI GetROP2(_In_ HDC)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI EqualRect(_In_ LPCRECT, _In_ LPCRECT)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static void test_begin_paint(void)
static void test_destroyed_window(void)
HWND WINAPI CreateWindowExA(_In_ DWORD dwExStyle, _In_opt_ LPCSTR lpClassName, _In_opt_ LPCSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define GetProcAddress(x, y)
BOOL WINAPI SetViewportExtEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPSIZE)
static HWND hwnd_classdc2
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
static void test_dc_attributes(void)