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
818aab58
Commit
818aab58
authored
Sep 26, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Properly handle Goto Today popup menu (on RButton).
parent
a95b63ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
monthcal.c
dlls/comctl32/monthcal.c
+13
-11
No files found.
dlls/comctl32/monthcal.c
View file @
818aab58
...
...
@@ -1294,22 +1294,24 @@ MONTHCAL_RButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
WCHAR
buf
[
32
];
hMenu
=
CreatePopupMenu
();
if
(
!
LoadStringW
(
COMCTL32_hModule
,
IDM_GOTODAY
,
buf
,
countof
(
buf
)))
{
if
(
!
LoadStringW
(
COMCTL32_hModule
,
IDM_GOTODAY
,
buf
,
countof
(
buf
)))
{
WARN
(
"Can't load resource
\n
"
);
strcpyW
(
buf
,
todayW
);
}
AppendMenuW
(
hMenu
,
MF_STRING
|
MF_ENABLED
,
1
,
buf
);
menupoint
.
x
=
(
short
)
LOWORD
(
lParam
);
menupoint
.
y
=
(
short
)
HIWORD
(
lParam
);
}
AppendMenuW
(
hMenu
,
MF_STRING
|
MF_ENABLED
,
1
,
buf
);
menupoint
.
x
=
(
short
)
LOWORD
(
lParam
);
menupoint
.
y
=
(
short
)
HIWORD
(
lParam
);
ClientToScreen
(
infoPtr
->
hwndSelf
,
&
menupoint
);
if
(
TrackPopupMenu
(
hMenu
,
TPM_RIGHTBUTTON
|
TPM_NONOTIFY
|
TPM_RETURNCMD
,
if
(
TrackPopupMenu
(
hMenu
,
TPM_RIGHTBUTTON
|
TPM_NONOTIFY
|
TPM_RETURNCMD
,
menupoint
.
x
,
menupoint
.
y
,
0
,
infoPtr
->
hwndSelf
,
NULL
))
{
infoPtr
->
curSel
.
wMonth
=
infoPtr
->
todaysDate
.
wMonth
;
infoPtr
->
curSel
.
wYear
=
infoPtr
->
todaysDate
.
wYear
;
{
infoPtr
->
curSel
=
infoPtr
->
todaysDate
;
infoPtr
->
minSel
=
infoPtr
->
todaysDate
;
infoPtr
->
maxSel
=
infoPtr
->
todaysDate
;
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
FALSE
);
}
}
return
0
;
}
...
...
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