Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
33803586
Commit
33803586
authored
Feb 13, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test that CS_PARENTDC enables child window to draw over whole parent window.
parent
3d6de8c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dce.c
dlls/user32/tests/dce.c
+7
-0
No files found.
dlls/user32/tests/dce.c
View file @
33803586
...
...
@@ -348,6 +348,7 @@ static void test_begin_paint(void)
HDC
old_hdc
,
hdc
;
RECT
rect
,
parent_rect
;
PAINTSTRUCT
ps
;
COLORREF
cr
;
/* cache DC */
...
...
@@ -427,6 +428,8 @@ static void test_begin_paint(void)
RedrawWindow
(
hwnd_parentdc
,
NULL
,
0
,
RDW_INVALIDATE
);
hdc
=
BeginPaint
(
hwnd_parentdc
,
&
ps
);
GetClipBox
(
hdc
,
&
rect
);
cr
=
SetPixel
(
hdc
,
10
,
10
,
RGB
(
255
,
0
,
0
)
);
ok
(
cr
!=
-
1
,
"error drawing outside of window client area
\n
"
);
EndPaint
(
hwnd_parentdc
,
&
ps
);
GetClientRect
(
hwnd_parent
,
&
parent_rect
);
...
...
@@ -434,6 +437,10 @@ static void test_begin_paint(void)
ok
(
rect
.
top
==
parent_rect
.
top
,
"rect.top = %d, expected %d
\n
"
,
rect
.
top
,
parent_rect
.
top
);
todo_wine
ok
(
rect
.
right
==
parent_rect
.
right
,
"rect.right = %d, expected %d
\n
"
,
rect
.
right
,
parent_rect
.
right
);
todo_wine
ok
(
rect
.
bottom
==
parent_rect
.
bottom
,
"rect.bottom = %d, expected %d
\n
"
,
rect
.
bottom
,
parent_rect
.
bottom
);
hdc
=
GetDC
(
hwnd_parent
);
todo_wine
ok
(
GetPixel
(
hdc
,
10
,
10
)
==
cr
,
"error drawing outside of window client area
\n
"
);
ReleaseDC
(
hwnd_parent
,
hdc
);
}
/* test ScrollWindow with window DCs */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment