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
9a5c9be1
Commit
9a5c9be1
authored
Sep 25, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Do not call default procedure for WM_NCCREATE.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
025b3de2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
datetime.c
dlls/comctl32/datetime.c
+1
-1
datetime.c
dlls/comctl32/tests/datetime.c
+11
-0
No files found.
dlls/comctl32/datetime.c
View file @
9a5c9be1
...
...
@@ -1277,7 +1277,7 @@ DATETIME_NCCreate (HWND hwnd, const CREATESTRUCTW *lpcs)
dwExStyle
|=
WS_EX_CLIENTEDGE
;
SetWindowLongW
(
hwnd
,
GWL_EXSTYLE
,
dwExStyle
);
return
DefWindowProcW
(
hwnd
,
WM_NCCREATE
,
0
,
(
LPARAM
)
lpcs
)
;
return
1
;
}
...
...
dlls/comctl32/tests/datetime.c
View file @
9a5c9be1
...
...
@@ -765,6 +765,7 @@ static void test_wm_set_get_text(void)
{
static
const
CHAR
a_str
[]
=
"a"
;
CHAR
buff
[
16
],
time
[
16
],
caltype
[
3
];
WCHAR
buffW
[
16
];
HWND
hWnd
;
LRESULT
ret
;
...
...
@@ -802,6 +803,16 @@ static void test_wm_set_get_text(void)
}
DestroyWindow
(
hWnd
);
/* Window text is not preserved. */
hWnd
=
CreateWindowExA
(
0
,
DATETIMEPICK_CLASSA
,
"testname"
,
0
,
0
,
50
,
300
,
120
,
NULL
,
NULL
,
NULL
,
NULL
);
buffW
[
0
]
=
1
;
InternalGetWindowText
(
hWnd
,
buffW
,
ARRAY_SIZE
(
buffW
));
ok
(
!
buffW
[
0
],
"Unexpected window text %s.
\n
"
,
wine_dbgstr_w
(
buffW
));
DestroyWindow
(
hWnd
);
}
static
void
test_dts_shownone
(
void
)
...
...
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