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
b442a5c0
Commit
b442a5c0
authored
Apr 01, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/button: Keep control style.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ffd84dc4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
button.c
dlls/comctl32/button.c
+7
-1
button.c
dlls/comctl32/tests/button.c
+2
-0
No files found.
dlls/comctl32/button.c
View file @
b442a5c0
...
...
@@ -91,6 +91,7 @@ typedef struct _BUTTON_INFO
{
HWND
hwnd
;
HWND
parent
;
LONG
style
;
LONG
state
;
HFONT
font
;
WCHAR
*
note
;
...
...
@@ -340,11 +341,16 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
break
;
case
WM_NCCREATE
:
{
CREATESTRUCTW
*
cs
=
(
CREATESTRUCTW
*
)
lParam
;
infoPtr
=
heap_alloc_zero
(
sizeof
(
*
infoPtr
)
);
SetWindowLongPtrW
(
hWnd
,
0
,
(
LONG_PTR
)
infoPtr
);
infoPtr
->
hwnd
=
hWnd
;
infoPtr
->
parent
=
GetParent
(
hWnd
);
infoPtr
->
parent
=
cs
->
hwndParent
;
infoPtr
->
style
=
cs
->
style
;
return
DefWindowProcW
(
hWnd
,
uMsg
,
wParam
,
lParam
);
}
case
WM_NCDESTROY
:
SetWindowLongPtrW
(
hWnd
,
0
,
0
);
...
...
dlls/comctl32/tests/button.c
View file @
b442a5c0
...
...
@@ -1004,6 +1004,7 @@ static void test_button_data(void)
{
HWND
self
;
HWND
parent
;
LONG
style
;
};
unsigned
int
i
;
HWND
parent
;
...
...
@@ -1027,6 +1028,7 @@ static void test_button_data(void)
{
ok
(
desc
->
self
==
hwnd
,
"Unexpected 'self' field.
\n
"
);
ok
(
desc
->
parent
==
parent
,
"Unexpected 'parent' field.
\n
"
);
ok
(
desc
->
style
==
(
WS_CHILD
|
BS_NOTIFY
|
styles
[
i
]),
"Unexpected 'style' field.
\n
"
);
}
DestroyWindow
(
hwnd
);
...
...
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