Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6be21eeb
Commit
6be21eeb
authored
May 18, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove LoadString() fallback when loading from same module.
parent
ad49634b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
monthcal.c
dlls/comctl32/monthcal.c
+2
-13
No files found.
dlls/comctl32/monthcal.c
View file @
6be21eeb
...
@@ -1018,13 +1018,7 @@ static void MONTHCAL_PaintTodayTitle(const MONTHCAL_INFO *infoPtr, HDC hdc, cons
...
@@ -1018,13 +1018,7 @@ static void MONTHCAL_PaintTodayTitle(const MONTHCAL_INFO *infoPtr, HDC hdc, cons
if
(
infoPtr
->
dwStyle
&
MCS_NOTODAY
)
return
;
if
(
infoPtr
->
dwStyle
&
MCS_NOTODAY
)
return
;
if
(
!
LoadStringW
(
COMCTL32_hModule
,
IDM_TODAY
,
buf_todayW
,
countof
(
buf_todayW
)))
LoadStringW
(
COMCTL32_hModule
,
IDM_TODAY
,
buf_todayW
,
countof
(
buf_todayW
));
{
static
const
WCHAR
todayW
[]
=
{
'T'
,
'o'
,
'd'
,
'a'
,
'y'
,
':'
,
0
};
WARN
(
"Can't load resource
\n
"
);
strcpyW
(
buf_todayW
,
todayW
);
}
col
=
infoPtr
->
dwStyle
&
MCS_NOTODAYCIRCLE
?
0
:
1
;
col
=
infoPtr
->
dwStyle
&
MCS_NOTODAYCIRCLE
?
0
:
1
;
if
(
infoPtr
->
dwStyle
&
MCS_WEEKNUMBERS
)
col
--
;
if
(
infoPtr
->
dwStyle
&
MCS_WEEKNUMBERS
)
col
--
;
/* label is located below first calendar last row */
/* label is located below first calendar last row */
...
@@ -1984,17 +1978,12 @@ static void MONTHCAL_GoToMonth(MONTHCAL_INFO *infoPtr, enum nav_direction direct
...
@@ -1984,17 +1978,12 @@ static void MONTHCAL_GoToMonth(MONTHCAL_INFO *infoPtr, enum nav_direction direct
static
LRESULT
static
LRESULT
MONTHCAL_RButtonUp
(
MONTHCAL_INFO
*
infoPtr
,
LPARAM
lParam
)
MONTHCAL_RButtonUp
(
MONTHCAL_INFO
*
infoPtr
,
LPARAM
lParam
)
{
{
static
const
WCHAR
todayW
[]
=
{
'G'
,
'o'
,
' '
,
't'
,
'o'
,
' '
,
'T'
,
'o'
,
'd'
,
'a'
,
'y'
,
':'
,
0
};
HMENU
hMenu
;
HMENU
hMenu
;
POINT
menupoint
;
POINT
menupoint
;
WCHAR
buf
[
32
];
WCHAR
buf
[
32
];
hMenu
=
CreatePopupMenu
();
hMenu
=
CreatePopupMenu
();
if
(
!
LoadStringW
(
COMCTL32_hModule
,
IDM_GOTODAY
,
buf
,
countof
(
buf
)))
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
);
AppendMenuW
(
hMenu
,
MF_STRING
|
MF_ENABLED
,
1
,
buf
);
menupoint
.
x
=
(
short
)
LOWORD
(
lParam
);
menupoint
.
x
=
(
short
)
LOWORD
(
lParam
);
menupoint
.
y
=
(
short
)
HIWORD
(
lParam
);
menupoint
.
y
=
(
short
)
HIWORD
(
lParam
);
...
...
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