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
b603927c
Commit
b603927c
authored
Feb 26, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Set default font to 'Times New Roman', like native does.
parent
cdac075e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
wordpad.c
programs/wordpad/wordpad.c
+17
-0
No files found.
programs/wordpad/wordpad.c
View file @
b603927c
...
...
@@ -253,6 +253,21 @@ static void HandleCommandLine(LPWSTR cmdline)
MessageBox
(
hMainWnd
,
"Printing not implemented"
,
"WordPad"
,
MB_OK
);
}
static
void
DoDefaultFont
()
{
static
const
WCHAR
szFaceName
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
0
};
CHARFORMAT2W
fmt
;
ZeroMemory
(
&
fmt
,
sizeof
(
fmt
));
fmt
.
cbSize
=
sizeof
(
fmt
);
fmt
.
dwMask
=
CFM_FACE
;
lstrcpyW
(
fmt
.
szFaceName
,
szFaceName
);
SendMessage
(
hEditorWnd
,
EM_SETCHARFORMAT
,
SCF_DEFAULT
,
(
LPARAM
)
&
fmt
);
}
static
LRESULT
OnCreate
(
HWND
hWnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HWND
hToolBarWnd
,
hReBarWnd
;
...
...
@@ -332,6 +347,8 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
SetFocus
(
hEditorWnd
);
SendMessage
(
hEditorWnd
,
EM_SETEVENTMASK
,
0
,
ENM_SELCHANGE
);
DoDefaultFont
();
DoLoadStrings
();
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