Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cf274c6f
Commit
cf274c6f
authored
Apr 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use the default implementation of WM_ERASEBKGND.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dcd9376a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
hexedit.c
programs/regedit/hexedit.c
+1
-32
No files found.
programs/regedit/hexedit.c
View file @
cf274c6f
...
...
@@ -340,34 +340,6 @@ HexEdit_Destroy (HEXEDIT_INFO *infoPtr)
return
0
;
}
static
inline
LRESULT
HexEdit_EraseBackground
(
HEXEDIT_INFO
*
infoPtr
,
HDC
hdc
)
{
HBRUSH
hBrush
,
hSolidBrush
=
NULL
;
RECT
rc
;
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
WS_DISABLED
)
hBrush
=
hSolidBrush
=
CreateSolidBrush
(
GetSysColor
(
COLOR_BTNFACE
));
else
{
hBrush
=
(
HBRUSH
)
SendMessageW
(
GetParent
(
infoPtr
->
hwndSelf
),
WM_CTLCOLOREDIT
,
(
WPARAM
)
hdc
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
if
(
!
hBrush
)
hBrush
=
hSolidBrush
=
CreateSolidBrush
(
GetSysColor
(
COLOR_WINDOW
));
}
GetClientRect
(
infoPtr
->
hwndSelf
,
&
rc
);
FillRect
(
hdc
,
&
rc
,
hBrush
);
if
(
hSolidBrush
)
DeleteObject
(
hSolidBrush
);
return
-
1
;
}
static
inline
LRESULT
HexEdit_GetFont
(
HEXEDIT_INFO
*
infoPtr
)
{
...
...
@@ -625,9 +597,6 @@ HexEdit_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_DESTROY
:
return
HexEdit_Destroy
(
infoPtr
);
case
WM_ERASEBKGND
:
return
HexEdit_EraseBackground
(
infoPtr
,
(
HDC
)
wParam
);
case
WM_GETDLGCODE
:
return
DLGC_WANTCHARS
|
DLGC_WANTARROWS
;
...
...
@@ -675,7 +644,7 @@ void HexEdit_Register(void)
wndClass
.
cbClsExtra
=
0
;
wndClass
.
cbWndExtra
=
sizeof
(
HEXEDIT_INFO
*
);
wndClass
.
hCursor
=
NULL
;
wndClass
.
hbrBackground
=
NULL
;
wndClass
.
hbrBackground
=
(
HBRUSH
)(
COLOR_WINDOW
+
1
)
;
wndClass
.
lpszClassName
=
szHexEditClass
;
RegisterClassW
(
&
wndClass
);
...
...
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