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
fcd35215
Commit
fcd35215
authored
Jul 15, 2000
by
Dave Hawkes
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All standard window controls should have CS_PARENTDC, but should still
clip to the control window.
parent
278b3bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
button.c
controls/button.c
+14
-0
No files found.
controls/button.c
View file @
fcd35215
...
...
@@ -921,6 +921,8 @@ static void OB_Paint( WND *wndPtr, HDC hDC, WORD action )
{
BUTTONINFO
*
infoPtr
=
(
BUTTONINFO
*
)
wndPtr
->
wExtra
;
DRAWITEMSTRUCT
dis
;
HRGN
clipRegion
;
RECT
clipRect
;
dis
.
CtlType
=
ODT_BUTTON
;
dis
.
CtlID
=
wndPtr
->
wIDmenu
;
...
...
@@ -934,9 +936,21 @@ static void OB_Paint( WND *wndPtr, HDC hDC, WORD action )
dis
.
itemData
=
0
;
GetClientRect
(
wndPtr
->
hwndSelf
,
&
dis
.
rcItem
);
clipRegion
=
CreateRectRgnIndirect
(
&
dis
.
rcItem
);
if
(
GetClipRgn
(
hDC
,
clipRegion
)
!=
1
)
{
DeleteObject
(
clipRegion
);
clipRegion
=
(
HRGN
)
NULL
;
}
clipRect
=
dis
.
rcItem
;
DPtoLP
(
hDC
,
(
LPPOINT
)
&
clipRect
,
2
);
IntersectClipRect
(
hDC
,
clipRect
.
left
,
clipRect
.
top
,
clipRect
.
right
,
clipRect
.
bottom
);
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_BTNFACE
)
);
SendMessageA
(
GetParent
(
wndPtr
->
hwndSelf
),
WM_DRAWITEM
,
wndPtr
->
wIDmenu
,
(
LPARAM
)
&
dis
);
SelectClipRgn
(
hDC
,
clipRegion
);
}
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