ReactOS 0.4.15-dev-7924-g5949c20
SetBoundsRect.c File Reference
#include "precomp.h"
Include dependency graph for SetBoundsRect.c:

Go to the source code of this file.

Functions

 START_TEST (SetBoundsRect)
 

Function Documentation

◆ START_TEST()

START_TEST ( SetBoundsRect  )

Definition at line 10 of file SetBoundsRect.c.

11{
12 HDC hDC;
13 UINT ret;
15
17 if (hDC == NULL)
18 {
19 skip("No DC\n");
20 return;
21 }
22
23 SetLastError(0xbeeffeed);
26 ok(ret == (DCB_DISABLE | DCB_RESET), "ret = %u\n", ret);
27 ok(error == 0xbeeffeed, "error = %lu\n", error);
28
29 SetLastError(0xbeeffeed);
32 ok(ret == (DCB_DISABLE | DCB_RESET), "ret = %u\n", ret);
33 ok(error == 0xbeeffeed, "error = %lu\n", error);
34
35 SetLastError(0xbeeffeed);
38 ok(ret == (DCB_DISABLE | DCB_RESET), "ret = %u\n", ret);
39 ok(error == 0xbeeffeed, "error = %lu\n", error);
40
41 SetLastError(0xbeeffeed);
44 ok(ret == (DCB_DISABLE | DCB_RESET), "ret = %u\n", ret);
45 ok(error == 0xbeeffeed, "error = %lu\n", error);
46
47 SetLastError(0xbeeffeed);
50 ok(ret == (DCB_ENABLE | DCB_RESET), "ret = %u\n", ret);
51 ok(error == 0xbeeffeed, "error = %lu\n", error);
52
54}
static HDC hDC
Definition: 3dtext.c:33
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
unsigned long DWORD
Definition: ntddk_ex.h:95
#define error(str)
Definition: mkdosfs.c:1605
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
int ret
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define DCB_RESET
Definition: wingdi.h:687
#define DCB_DISABLE
Definition: wingdi.h:685
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define DCB_ACCUMULATE
Definition: wingdi.h:689
#define DCB_ENABLE
Definition: wingdi.h:686
BOOL WINAPI DeleteDC(_In_ HDC)
UINT WINAPI SetBoundsRect(_In_ HDC, _In_opt_ LPCRECT, _In_ UINT)
HDC WINAPI GetDC(_In_opt_ HWND)