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
a096ba4c
Commit
a096ba4c
authored
Oct 11, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Fix wrong assumption about DTN_DATETIMECHANGE flags, add…
comctl32/datetime: Fix wrong assumption about DTN_DATETIMECHANGE flags, add DTN_CLOSEUP notifications.
parent
8431bed5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
datetime.c
dlls/comctl32/datetime.c
+7
-4
No files found.
dlls/comctl32/datetime.c
View file @
a096ba4c
...
...
@@ -31,7 +31,6 @@
* TODO:
* -- DTS_APPCANPARSE
* -- DTS_SHORTDATECENTURYFORMAT
* -- DTN_CLOSEUP
* -- DTN_FORMAT
* -- DTN_FORMATQUERY
* -- DTN_USERSTRING
...
...
@@ -811,20 +810,23 @@ DATETIME_LButtonDown (DATETIME_INFO *infoPtr, INT x, INT y)
if
(
IsWindowVisible
(
infoPtr
->
hMonthCal
))
{
ShowWindow
(
infoPtr
->
hMonthCal
,
SW_HIDE
);
infoPtr
->
bDropdownEnabled
=
FALSE
;
DATETIME_SendSimpleNotify
(
infoPtr
,
DTN_CLOSEUP
);
}
else
{
const
SYSTEMTIME
*
lprgSysTimeArray
=
&
infoPtr
->
date
;
TRACE
(
"update calendar %04d/%02d/%02d
\n
"
,
lprgSysTimeArray
->
wYear
,
lprgSysTimeArray
->
wMonth
,
lprgSysTimeArray
->
wDay
);
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_SETCURSEL
,
0
,
(
LPARAM
)(
&
infoPtr
->
date
));
if
(
infoPtr
->
bDropdownEnabled
)
if
(
infoPtr
->
bDropdownEnabled
)
{
ShowWindow
(
infoPtr
->
hMonthCal
,
SW_SHOW
);
DATETIME_SendSimpleNotify
(
infoPtr
,
DTN_DROPDOWN
);
}
infoPtr
->
bDropdownEnabled
=
TRUE
;
}
TRACE
(
"dt:%p mc:%p mc parent:%p, desktop:%p
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
hMonthCal
,
infoPtr
->
hwndNotify
,
GetDesktopWindow
());
DATETIME_SendSimpleNotify
(
infoPtr
,
DTN_DROPDOWN
);
}
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
...
...
@@ -944,6 +946,7 @@ DATETIME_Notify (DATETIME_INFO *infoPtr, LPNMHDR lpnmh)
SendMessageW
(
infoPtr
->
hwndCheckbut
,
BM_SETCHECK
,
BST_CHECKED
,
0
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
DATETIME_SendDateTimeChangeNotify
(
infoPtr
);
DATETIME_SendSimpleNotify
(
infoPtr
,
DTN_CLOSEUP
);
}
if
((
lpnmh
->
hwndFrom
==
infoPtr
->
hUpdown
)
&&
(
lpnmh
->
code
==
UDN_DELTAPOS
))
{
LPNMUPDOWN
lpnmud
=
(
LPNMUPDOWN
)
lpnmh
;
...
...
@@ -1188,7 +1191,7 @@ DATETIME_SendDateTimeChangeNotify (const DATETIME_INFO *infoPtr)
dtdtc
.
nmhdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_ID
);
dtdtc
.
nmhdr
.
code
=
DTN_DATETIMECHANGE
;
dtdtc
.
dwFlags
=
(
infoPtr
->
dwStyle
&
DTS_SHOWNONE
)
?
GDT_NONE
:
GDT_VALID
;
dtdtc
.
dwFlags
=
infoPtr
->
dateValid
?
GDT_VALID
:
GDT_NONE
;
dtdtc
.
st
=
infoPtr
->
date
;
return
(
BOOL
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
...
...
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