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
f11b022f
Commit
f11b022f
authored
Nov 11, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ownerdraw buttons should erase themselves in WM_ERASEBKGND.
parent
818c5861
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
button.c
controls/button.c
+11
-0
No files found.
controls/button.c
View file @
f11b022f
...
...
@@ -205,6 +205,17 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
return
0
;
case
WM_ERASEBKGND
:
if
(
btn_type
==
BS_OWNERDRAW
)
{
HDC
hdc
=
(
HDC
)
wParam
;
RECT
rc
;
HBRUSH
hBrush
=
(
HBRUSH
)
SendMessageW
(
GetParent
(
hWnd
),
WM_CTLCOLORBTN
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hWnd
);
if
(
!
hBrush
)
/* did the app forget to call defwindowproc ? */
hBrush
=
(
HBRUSH
)
DefWindowProcW
(
GetParent
(
hWnd
),
WM_CTLCOLORBTN
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hWnd
);
GetClientRect
(
hWnd
,
&
rc
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
}
return
1
;
case
WM_PAINT
:
...
...
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