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
fe7fc51a
Commit
fe7fc51a
authored
Jan 06, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved string to resources.
parent
f783cd03
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
8 deletions
+21
-8
cdlg.h
dlls/commdlg/cdlg.h
+2
-0
cdlg_En.rc
dlls/commdlg/cdlg_En.rc
+4
-0
cdlg_Pl.rc
dlls/commdlg/cdlg_Pl.rc
+5
-0
fontdlg.c
dlls/commdlg/fontdlg.c
+10
-8
No files found.
dlls/commdlg/cdlg.h
View file @
fe7fc51a
...
...
@@ -145,6 +145,8 @@ typedef struct {
#define IDS_COLOR_AQUA 1054
#define IDS_COLOR_WHITE 1055
#define IDS_FONT_SIZE 1200
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
...
...
dlls/commdlg/cdlg_En.rc
View file @
fe7fc51a
...
...
@@ -460,6 +460,10 @@ STRINGTABLE DISCARDABLE /* Color names */
IDS_COLOR_WHITE "White"
}
STRINGTABLE DISCARDABLE
{
IDS_FONT_SIZE "Select a font size between %d and %d points."
}
/****************************************************************/
/* English neutral resources
...
...
dlls/commdlg/cdlg_Pl.rc
View file @
fe7fc51a
...
...
@@ -436,6 +436,11 @@ STRINGTABLE DISCARDABLE
PD32_PRINTER_STATUS_POWER_SAVE "Tryb oszczdzania energii; "
}
STRINGTABLE DISCARDABLE
{
IDS_FONT_SIZE "Wybierz czcionk o rozmiarze pomidzy %d a %d punktami."
}
STRINGTABLE DISCARDABLE /* Color names */
{
IDS_COLOR_BLACK "Czarny"
...
...
dlls/commdlg/fontdlg.c
View file @
fe7fc51a
...
...
@@ -393,16 +393,17 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTW *lplf)
static
int
AddFontSizeToCombo3
(
HWND
hwnd
,
UINT
h
,
LPCHOOSEFONTW
lpcf
)
{
int
j
;
char
buffer
[
20
];
WCHAR
buffer
[
20
];
static
const
WCHAR
strFormat
[]
=
{
'%'
,
'2'
,
'd'
,
0
};
if
(
(
!
(
lpcf
->
Flags
&
CF_LIMITSIZE
))
||
((
lpcf
->
Flags
&
CF_LIMITSIZE
)
&&
(
h
>=
lpcf
->
nSizeMin
)
&&
(
h
<=
lpcf
->
nSizeMax
)))
{
sprintf
(
buffer
,
"%2d"
,
h
);
j
=
SendMessage
A
(
hwnd
,
CB_FINDSTRINGEXACT
,
-
1
,
(
LPARAM
)
buffer
);
wsprintfW
(
buffer
,
strFormat
,
h
);
j
=
SendMessage
W
(
hwnd
,
CB_FINDSTRINGEXACT
,
-
1
,
(
LPARAM
)
buffer
);
if
(
j
==
CB_ERR
)
{
j
=
SendMessage
A
(
hwnd
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
buffer
);
j
=
SendMessage
W
(
hwnd
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
buffer
);
if
(
j
!=
CB_ERR
)
j
=
SendMessageW
(
hwnd
,
CB_SETITEMDATA
,
j
,
h
);
if
(
j
==
CB_ERR
)
return
1
;
}
...
...
@@ -1006,10 +1007,11 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
EndDialog
(
hDlg
,
TRUE
);
else
{
char
buffer
[
80
];
sprintf
(
buffer
,
"Select a font size between %d and %d points."
,
lpcf
->
nSizeMin
,
lpcf
->
nSizeMax
);
MessageBoxA
(
hDlg
,
buffer
,
NULL
,
MB_OK
);
WCHAR
buffer
[
80
];
WCHAR
format
[
80
];
LoadStringW
(
COMDLG32_hInstance
,
IDS_FONT_SIZE
,
format
,
sizeof
(
format
)
/
sizeof
(
WCHAR
));
wsprintfW
(
buffer
,
format
,
lpcf
->
nSizeMin
,
lpcf
->
nSizeMax
);
MessageBoxW
(
hDlg
,
buffer
,
NULL
,
MB_OK
);
}
return
(
TRUE
);
case
IDCANCEL
:
...
...
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