ReactOS
0.4.16-dev-963-g182f353
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
SetBoundsRect.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS API tests
3
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
4
* PURPOSE: Test for SetBoundsRect
5
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org
6
*/
7
8
#include "
precomp.h
"
9
10
START_TEST
(
SetBoundsRect
)
11
{
12
HDC
hDC
;
13
UINT
ret
;
14
DWORD
error
;
15
16
hDC
=
CreateCompatibleDC
(
GetDC
(
NULL
));
17
if
(
hDC
==
NULL
)
18
{
19
skip
(
"No DC\n"
);
20
return
;
21
}
22
23
SetLastError
(0xbeeffeed);
24
ret
=
SetBoundsRect
(
hDC
,
NULL
, 0);
25
error
=
GetLastError
();
26
ok
(
ret
== (
DCB_DISABLE
|
DCB_RESET
),
"ret = %u\n"
,
ret
);
27
ok
(
error
== 0xbeeffeed,
"error = %lu\n"
,
error
);
28
29
SetLastError
(0xbeeffeed);
30
ret
=
SetBoundsRect
(
hDC
,
NULL
,
DCB_ACCUMULATE
);
31
error
=
GetLastError
();
32
ok
(
ret
== (
DCB_DISABLE
|
DCB_RESET
),
"ret = %u\n"
,
ret
);
33
ok
(
error
== 0xbeeffeed,
"error = %lu\n"
,
error
);
34
35
SetLastError
(0xbeeffeed);
36
ret
=
SetBoundsRect
(
hDC
,
NULL
,
DCB_DISABLE
);
37
error
=
GetLastError
();
38
ok
(
ret
== (
DCB_DISABLE
|
DCB_RESET
),
"ret = %u\n"
,
ret
);
39
ok
(
error
== 0xbeeffeed,
"error = %lu\n"
,
error
);
40
41
SetLastError
(0xbeeffeed);
42
ret
=
SetBoundsRect
(
hDC
,
NULL
,
DCB_ENABLE
);
43
error
=
GetLastError
();
44
ok
(
ret
== (
DCB_DISABLE
|
DCB_RESET
),
"ret = %u\n"
,
ret
);
45
ok
(
error
== 0xbeeffeed,
"error = %lu\n"
,
error
);
46
47
SetLastError
(0xbeeffeed);
48
ret
=
SetBoundsRect
(
hDC
,
NULL
,
DCB_RESET
);
49
error
=
GetLastError
();
50
ok
(
ret
== (
DCB_ENABLE
|
DCB_RESET
),
"ret = %u\n"
,
ret
);
51
ok
(
error
== 0xbeeffeed,
"error = %lu\n"
,
error
);
52
53
DeleteDC
(
hDC
);
54
}
hDC
static HDC hDC
Definition:
3dtext.c:33
ok
#define ok(value,...)
Definition:
atltest.h:57
skip
#define skip(...)
Definition:
atltest.h:64
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NULL
#define NULL
Definition:
types.h:112
SetLastError
#define SetLastError(x)
Definition:
compat.h:752
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
error
#define error(str)
Definition:
mkdosfs.c:1605
HDC
static HDC
Definition:
imagelist.c:88
UINT
unsigned int UINT
Definition:
ndis.h:50
ret
int ret
Definition:
wcstombs-tests.c:31
precomp.h
GetLastError
DWORD WINAPI GetLastError(void)
Definition:
except.c:1042
DCB_RESET
#define DCB_RESET
Definition:
wingdi.h:687
DCB_DISABLE
#define DCB_DISABLE
Definition:
wingdi.h:685
CreateCompatibleDC
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
DCB_ACCUMULATE
#define DCB_ACCUMULATE
Definition:
wingdi.h:689
DCB_ENABLE
#define DCB_ENABLE
Definition:
wingdi.h:686
DeleteDC
BOOL WINAPI DeleteDC(_In_ HDC)
SetBoundsRect
UINT WINAPI SetBoundsRect(_In_ HDC, _In_opt_ LPCRECT, _In_ UINT)
GetDC
HDC WINAPI GetDC(_In_opt_ HWND)
modules
rostests
apitests
gdi32
SetBoundsRect.c
Generated on Mon Apr 7 2025 06:09:25 for ReactOS by
1.9.6