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
8242b651
Commit
8242b651
authored
Dec 22, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jan 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use the default WM_PAINT implementation for REGEDIT window.
parent
734190a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
childwnd.c
programs/regedit/childwnd.c
+0
-14
main.c
programs/regedit/main.c
+1
-0
No files found.
programs/regedit/childwnd.c
View file @
8242b651
...
...
@@ -79,17 +79,6 @@ static void ResizeWnd(int cx, int cy)
EndDeferWindowPos
(
hdwp
);
}
static
void
OnPaint
(
HWND
hWnd
)
{
PAINTSTRUCT
ps
;
RECT
rt
;
GetClientRect
(
hWnd
,
&
rt
);
BeginPaint
(
hWnd
,
&
ps
);
FillRect
(
ps
.
hdc
,
&
rt
,
GetSysColorBrush
(
COLOR_BTNFACE
));
EndPaint
(
hWnd
,
&
ps
);
}
static
LPWSTR
CombinePaths
(
LPCWSTR
pPaths
[],
int
nPaths
)
{
int
i
,
len
,
pos
;
LPWSTR
combined
;
...
...
@@ -455,9 +444,6 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
goto
def
;
}
break
;
case
WM_PAINT
:
OnPaint
(
hWnd
);
return
0
;
case
WM_SETCURSOR
:
if
(
LOWORD
(
lParam
)
==
HTCLIENT
)
{
POINT
pt
;
...
...
programs/regedit/main.c
View file @
8242b651
...
...
@@ -75,6 +75,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
wndclass
.
lpfnWndProc
=
ChildWndProc
;
wndclass
.
cbWndExtra
=
sizeof
(
HANDLE
);
wndclass
.
lpszClassName
=
szChildClass
;
wndclass
.
hbrBackground
=
(
HBRUSH
)(
COLOR_BTNFACE
+
1
);
RegisterClassExW
(
&
wndclass
);
hMenuFrame
=
LoadMenuW
(
hInstance
,
MAKEINTRESOURCEW
(
IDR_REGEDIT_MENU
));
...
...
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