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
d54979e3
Commit
d54979e3
authored
Aug 17, 2012
by
Sergey Guralnik
Committed by
Alexandre Julliard
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Correct values passed in MCN_SELECT/MCN_SELCHANGE notifications.
parent
c7abff0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
monthcal.c
dlls/comctl32/monthcal.c
+15
-2
monthcal.c
dlls/comctl32/tests/monthcal.c
+3
-4
No files found.
dlls/comctl32/monthcal.c
View file @
d54979e3
...
...
@@ -185,7 +185,14 @@ static inline void MONTHCAL_NotifySelectionChange(const MONTHCAL_INFO *infoPtr)
nmsc
.
nmhdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_ID
);
nmsc
.
nmhdr
.
code
=
MCN_SELCHANGE
;
nmsc
.
stSelStart
=
infoPtr
->
minSel
;
nmsc
.
stSelEnd
=
infoPtr
->
maxSel
;
nmsc
.
stSelStart
.
wDayOfWeek
=
0
;
if
(
infoPtr
->
dwStyle
&
MCS_MULTISELECT
){
nmsc
.
stSelEnd
=
infoPtr
->
maxSel
;
nmsc
.
stSelEnd
.
wDayOfWeek
=
0
;
}
else
nmsc
.
stSelEnd
=
st_null
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
}
...
...
@@ -198,7 +205,13 @@ static inline void MONTHCAL_NotifySelect(const MONTHCAL_INFO *infoPtr)
nmsc
.
nmhdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_ID
);
nmsc
.
nmhdr
.
code
=
MCN_SELECT
;
nmsc
.
stSelStart
=
infoPtr
->
minSel
;
nmsc
.
stSelEnd
=
infoPtr
->
maxSel
;
nmsc
.
stSelStart
.
wDayOfWeek
=
0
;
if
(
infoPtr
->
dwStyle
&
MCS_MULTISELECT
){
nmsc
.
stSelEnd
=
infoPtr
->
maxSel
;
nmsc
.
stSelEnd
.
wDayOfWeek
=
0
;
}
else
nmsc
.
stSelEnd
=
st_null
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
}
...
...
dlls/comctl32/tests/monthcal.c
View file @
d54979e3
...
...
@@ -502,19 +502,18 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
expect
(
st
[
0
].
wYear
,
nmchg
->
stSelStart
.
wYear
);
expect
(
st
[
0
].
wMonth
,
nmchg
->
stSelStart
.
wMonth
);
todo_wine
expect
(
0
,
nmchg
->
stSelStart
.
wDayOfWeek
);
expect
(
0
,
nmchg
->
stSelStart
.
wDayOfWeek
);
expect
(
st
[
0
].
wDay
,
nmchg
->
stSelStart
.
wDay
);
if
(
is_multisel
)
{
expect
(
st
[
1
].
wYear
,
nmchg
->
stSelEnd
.
wYear
);
expect
(
st
[
1
].
wMonth
,
nmchg
->
stSelEnd
.
wMonth
);
todo_wine
expect
(
0
,
nmchg
->
stSelEnd
.
wDayOfWeek
);
expect
(
0
,
nmchg
->
stSelEnd
.
wDayOfWeek
);
expect
(
st
[
1
].
wDay
,
nmchg
->
stSelEnd
.
wDay
);
}
else
todo_wine
ok
(
!
(
nmchg
->
stSelEnd
.
wYear
|
nmchg
->
stSelEnd
.
wMonth
|
ok
(
!
(
nmchg
->
stSelEnd
.
wYear
|
nmchg
->
stSelEnd
.
wMonth
|
nmchg
->
stSelEnd
.
wDayOfWeek
|
nmchg
->
stSelEnd
.
wDay
|
nmchg
->
stSelEnd
.
wHour
|
nmchg
->
stSelEnd
.
wMinute
|
nmchg
->
stSelEnd
.
wSecond
|
nmchg
->
stSelEnd
.
wMilliseconds
),
...
...
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