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
f124a586
Commit
f124a586
authored
Oct 13, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Added option to disable word wrap.
parent
8ef9d20f
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
77 additions
and
47 deletions
+77
-47
Da.rc
programs/wordpad/Da.rc
+3
-2
De.rc
programs/wordpad/De.rc
+3
-2
En.rc
programs/wordpad/En.rc
+3
-2
Fr.rc
programs/wordpad/Fr.rc
+3
-2
Hu.rc
programs/wordpad/Hu.rc
+3
-2
Ja.rc
programs/wordpad/Ja.rc
+3
-2
Ko.rc
programs/wordpad/Ko.rc
+3
-2
Nl.rc
programs/wordpad/Nl.rc
+3
-2
No.rc
programs/wordpad/No.rc
+3
-2
Pl.rc
programs/wordpad/Pl.rc
+3
-2
Ru.rc
programs/wordpad/Ru.rc
+3
-2
Si.rc
programs/wordpad/Si.rc
+3
-2
Tr.rc
programs/wordpad/Tr.rc
+3
-2
Zh.rc
programs/wordpad/Zh.rc
+3
-2
print.c
programs/wordpad/print.c
+20
-10
registry.c
programs/wordpad/registry.c
+1
-1
wordpad.c
programs/wordpad/wordpad.c
+10
-5
wordpad.h
programs/wordpad/wordpad.h
+4
-3
No files found.
programs/wordpad/Da.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Liniebrydning", 0, 10, 10, 130, 85
GROUPBOX "Liniebrydning", 0, 10, 10, 130, 85
RADIOBUTTON "Bryd tekst efter v&indusbredden", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Bryd tekst efter &margen", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Bryd tekst efter v&indusbredden", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Bryd tekst efter &margen", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Vrktjslinier", 0, 150, 10, 120, 85
GROUPBOX "Vrktjslinier", 0, 150, 10, 120, 85
CHECKBOX "&Vrktjslinie", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Vrktjslinie", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatteringlinie", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatteringlinie", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/De.rc
View file @
f124a586
...
@@ -166,8 +166,9 @@ Caption ""
...
@@ -166,8 +166,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Zeilenumbruch", 0, 10, 10, 130, 85
GROUPBOX "Zeilenumbruch", 0, 10, 10, 130, 85
RADIOBUTTON "&Am Fenster umbrechen", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "A&m Lineal umbrechen", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "&Am Fenster umbrechen", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "A&m Lineal umbrechen", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Symbolleisten", 0, 150, 10, 120, 85
GROUPBOX "Symbolleisten", 0, 150, 10, 120, 85
CHECKBOX "&Symbolleiste", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Symbolleiste", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatierungsleiste", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatierungsleiste", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/En.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "&No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Fr.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Enveloppement de ligne", 0, 10, 10, 170, 85
GROUPBOX "Enveloppement de ligne", 0, 10, 10, 170, 85
RADIOBUTTON "Enveloppe le texte partir de la bordure de fentre", IDC_PAGEFMT_WW, 18, 25, 145, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 145, 15
RADIOBUTTON "Enveloppe le texte partir de la &marge", IDC_PAGEFMT_WM, 18, 45, 145, 15
RADIOBUTTON "Enveloppe le texte partir de la bordure de fentre", IDC_PAGEFMT_WW, 18, 45, 145, 15
RADIOBUTTON "Enveloppe le texte partir de la &marge", IDC_PAGEFMT_WM, 18, 65, 145, 15
GROUPBOX "Barres d'outils", 0, 170, 10, 120, 85
GROUPBOX "Barres d'outils", 0, 170, 10, 120, 85
CHECKBOX "&Barre d'outils", IDC_PAGEFMT_TB, 180, 20, 80, 15
CHECKBOX "&Barre d'outils", IDC_PAGEFMT_TB, 180, 20, 80, 15
CHECKBOX "Barre de &format", IDC_PAGEFMT_FB, 180, 38, 80, 15
CHECKBOX "Barre de &format", IDC_PAGEFMT_FB, 180, 38, 80, 15
...
...
programs/wordpad/Hu.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Ja.rc
View file @
f124a586
...
@@ -167,8 +167,9 @@ CAPTION ""
...
@@ -167,8 +167,9 @@ CAPTION ""
FONT 9, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "行の折り返し", 0, 10, 10, 130, 85
GROUPBOX "行の折り返し", 0, 10, 10, 130, 85
RADIOBUTTON "ウィンドウの境界で折り返す(&W)", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "マージンで折り返す(&M)", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "ウィンドウの境界で折り返す(&W)", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "マージンで折り返す(&M)", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "ツールバー", 0, 150, 10, 120, 85
GROUPBOX "ツールバー", 0, 150, 10, 120, 85
CHECKBOX "ツールバー(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "ツールバー(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "書式バー(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "書式バー(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Ko.rc
View file @
f124a586
...
@@ -166,8 +166,9 @@ Caption ""
...
@@ -166,8 +166,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "줄 넘기기", 0, 10, 10, 130, 85
GROUPBOX "줄 넘기기", 0, 10, 10, 130, 85
RADIOBUTTON "창 가장자리서 글 넘기기(&W)", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "가장자리에서 줄 넘기기(&M)", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "창 가장자리서 글 넘기기(&W)", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "가장자리에서 줄 넘기기(&M)", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX " 도구바", 0, 150, 10, 120, 85
GROUPBOX " 도구바", 0, 150, 10, 120, 85
CHECKBOX "도구바(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "도구바(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "형식바(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "형식바(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Nl.rc
View file @
f124a586
...
@@ -165,8 +165,9 @@ Caption ""
...
@@ -165,8 +165,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Regel afbreken", 0, 10, 10, 130, 85
GROUPBOX "Regel afbreken", 0, 10, 10, 130, 85
RADIOBUTTON "Breek tekst af bij &venster rand", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Breek tekst af bij de &marge", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Breek tekst af bij &venster rand", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Breek tekst af bij de &marge", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
CHECKBOX "&Toolbalk", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Toolbalk", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formaatbalk", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formaatbalk", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/No.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Linjebryting", 0, 10, 10, 130, 85
GROUPBOX "Linjebryting", 0, 10, 10, 130, 85
RADIOBUTTON "Bryt tekst etter v&indusbredden", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Bryt tekst etter &margen", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Bryt tekst etter v&indusbredden", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Bryt tekst etter &margen", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Verktylinjer", 0, 150, 10, 120, 85
GROUPBOX "Verktylinjer", 0, 150, 10, 120, 85
CHECKBOX "&Verktylinje", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Verktylinje", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatlinje", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatlinje", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Pl.rc
View file @
f124a586
...
@@ -165,8 +165,9 @@ Caption ""
...
@@ -165,8 +165,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Zawijanie wierszy", 0, 10, 10, 130, 85
GROUPBOX "Zawijanie wierszy", 0, 10, 10, 130, 85
RADIOBUTTON "Zawijaj do &brzegu okna", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Zawijaj do &marginesu", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Zawijaj do &brzegu okna", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Zawijaj do &marginesu", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Paski narzdzi", 0, 150, 10, 120, 85
GROUPBOX "Paski narzdzi", 0, 150, 10, 120, 85
CHECKBOX "Pasek &narzdzi", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "Pasek &narzdzi", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "Pasek &formatu", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "Pasek &formatu", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Ru.rc
View file @
f124a586
...
@@ -164,8 +164,9 @@ Caption ""
...
@@ -164,8 +164,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX " ", 0, 10, 10, 130, 85
GROUPBOX " ", 0, 10, 10, 130, 85
RADIOBUTTON " &", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON " &", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON " &", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON " &", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "", 0, 150, 10, 120, 85
GROUPBOX "", 0, 150, 10, 120, 85
CHECKBOX "&", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Si.rc
View file @
f124a586
...
@@ -166,8 +166,9 @@ Caption ""
...
@@ -166,8 +166,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Prelom vrstic", 0, 10, 10, 130, 85
GROUPBOX "Prelom vrstic", 0, 10, 10, 130, 85
RADIOBUTTON "Prelomi besedilo na robu o&kna", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Prelomi besedilo na robu &papirja", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Prelomi besedilo na robu o&kna", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Prelomi besedilo na robu &papirja", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Orodne vrstice", 0, 150, 10, 120, 85
GROUPBOX "Orodne vrstice", 0, 150, 10, 120, 85
CHECKBOX "O&rodna vrstica", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "O&rodna vrstica", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "O&blikovna vrstica", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "O&blikovna vrstica", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Tr.rc
View file @
f124a586
...
@@ -166,8 +166,9 @@ Caption ""
...
@@ -166,8 +166,9 @@ Caption ""
FONT 8, "MS Shell Dlg"
FONT 8, "MS Shell Dlg"
BEGIN
BEGIN
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
GROUPBOX "Line wrapping", 0, 10, 10, 130, 85
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
GROUPBOX "Toolbars", 0, 150, 10, 120, 85
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/Zh.rc
View file @
f124a586
...
@@ -169,8 +169,9 @@ Caption ""
...
@@ -169,8 +169,9 @@ Caption ""
FONT 9, "MS Song"
FONT 9, "MS Song"
BEGIN
BEGIN
GROUPBOX "自动换行", 0, 10, 10, 130, 85
GROUPBOX "自动换行", 0, 10, 10, 130, 85
RADIOBUTTON "按视窗宽度(&W)", IDC_PAGEFMT_WW, 18, 25, 117, 15
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
RADIOBUTTON "按纸张宽度(&M)", IDC_PAGEFMT_WM, 18, 45, 117, 15
RADIOBUTTON "按视窗宽度(&W)", IDC_PAGEFMT_WW, 18, 45, 117, 15
RADIOBUTTON "按纸张宽度(&M)", IDC_PAGEFMT_WM, 18, 65, 117, 15
GROUPBOX "工具栏", 0, 150, 10, 120, 85
GROUPBOX "工具栏", 0, 150, 10, 120, 85
CHECKBOX "工具栏(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "工具栏(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
CHECKBOX "格式工具栏(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
CHECKBOX "格式工具栏(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
...
...
programs/wordpad/print.c
View file @
f124a586
...
@@ -179,25 +179,35 @@ static RECT get_print_rect(HDC hdc)
...
@@ -179,25 +179,35 @@ static RECT get_print_rect(HDC hdc)
void
target_device
(
HWND
hMainWnd
,
DWORD
wordWrap
)
void
target_device
(
HWND
hMainWnd
,
DWORD
wordWrap
)
{
{
HWND
hEditorWnd
=
GetDlgItem
(
hMainWnd
,
IDC_EDITOR
);
HWND
hEditorWnd
=
GetDlgItem
(
hMainWnd
,
IDC_EDITOR
);
HDC
hdc
=
make_dc
();
int
width
=
0
;
if
(
wordWrap
==
ID_WORDWRAP_MARGIN
)
if
(
wordWrap
==
ID_WORDWRAP_MARGIN
)
{
{
int
width
=
0
;
LRESULT
result
;
HDC
hdc
=
make_dc
();
RECT
rc
=
get_print_rect
(
hdc
);
RECT
rc
=
get_print_rect
(
hdc
);
width
=
rc
.
right
-
rc
.
left
;
width
=
rc
.
right
-
rc
.
left
;
if
(
!
hdc
)
{
HDC
hMaindc
=
GetDC
(
hMainWnd
);
hdc
=
CreateCompatibleDC
(
hMaindc
);
ReleaseDC
(
hMainWnd
,
hMaindc
);
}
result
=
SendMessageW
(
hEditorWnd
,
EM_SETTARGETDEVICE
,
(
WPARAM
)
hdc
,
width
);
DeleteDC
(
hdc
);
if
(
result
)
return
;
/* otherwise EM_SETTARGETDEVICE failed, so fall back on wrapping
* to window using the NULL DC. */
}
}
if
(
!
hdc
)
if
(
wordWrap
!=
ID_WORDWRAP_NONE
)
{
{
SendMessageW
(
hEditorWnd
,
EM_SETTARGETDEVICE
,
0
,
0
);
HDC
hMaindc
=
GetDC
(
hMainWnd
);
}
else
{
hdc
=
CreateCompatibleDC
(
hMaindc
);
SendMessageW
(
hEditorWnd
,
EM_SETTARGETDEVICE
,
0
,
1
);
ReleaseDC
(
hMainWnd
,
hMaindc
);
}
}
SendMessageW
(
hEditorWnd
,
EM_SETTARGETDEVICE
,
(
WPARAM
)
hdc
,
width
);
DeleteDC
(
hdc
);
}
}
static
LPWSTR
dialog_print_to_file
(
HWND
hMainWnd
)
static
LPWSTR
dialog_print_to_file
(
HWND
hMainWnd
)
...
...
programs/wordpad/registry.c
View file @
f124a586
...
@@ -366,7 +366,7 @@ static void registry_read_formatopts(int index, LPCWSTR key, DWORD barState[], D
...
@@ -366,7 +366,7 @@ static void registry_read_formatopts(int index, LPCWSTR key, DWORD barState[], D
if
(
index
==
reg_formatindex
(
SF_RTF
))
if
(
index
==
reg_formatindex
(
SF_RTF
))
wordWrap
[
index
]
=
ID_WORDWRAP_WINDOW
;
wordWrap
[
index
]
=
ID_WORDWRAP_WINDOW
;
else
if
(
index
==
reg_formatindex
(
SF_TEXT
))
else
if
(
index
==
reg_formatindex
(
SF_TEXT
))
wordWrap
[
index
]
=
ID_WORDWRAP_
WINDOW
;
/* FIXME: should be ID_WORDWRAP_NONE once we support it */
wordWrap
[
index
]
=
ID_WORDWRAP_
NONE
;
RegCloseKey
(
hKey
);
RegCloseKey
(
hKey
);
}
}
...
...
programs/wordpad/wordpad.c
View file @
f124a586
...
@@ -980,13 +980,15 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
...
@@ -980,13 +980,15 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
sprintf
(
id
,
"%d
\n
"
,
(
int
)
ps
->
lParam
);
sprintf
(
id
,
"%d
\n
"
,
(
int
)
ps
->
lParam
);
SetWindowTextA
(
hIdWnd
,
id
);
SetWindowTextA
(
hIdWnd
,
id
);
if
(
wordWrap
[
ps
->
lParam
]
==
ID_WORDWRAP_WINDOW
)
if
(
wordWrap
[
ps
->
lParam
]
==
ID_WORDWRAP_NONE
)
wrap
=
IDC_PAGEFMT_WN
;
else
if
(
wordWrap
[
ps
->
lParam
]
==
ID_WORDWRAP_WINDOW
)
wrap
=
IDC_PAGEFMT_WW
;
wrap
=
IDC_PAGEFMT_WW
;
else
if
(
wordWrap
[
ps
->
lParam
]
==
ID_WORDWRAP_MARGIN
)
else
if
(
wordWrap
[
ps
->
lParam
]
==
ID_WORDWRAP_MARGIN
)
wrap
=
IDC_PAGEFMT_WM
;
wrap
=
IDC_PAGEFMT_WM
;
if
(
wrap
!=
-
1
)
if
(
wrap
!=
-
1
)
CheckRadioButton
(
hWnd
,
IDC_PAGEFMT_W
W
,
CheckRadioButton
(
hWnd
,
IDC_PAGEFMT_W
N
,
IDC_PAGEFMT_WM
,
wrap
);
IDC_PAGEFMT_WM
,
wrap
);
if
(
barState
[
ps
->
lParam
]
&
(
1
<<
BANDID_TOOLBAR
))
if
(
barState
[
ps
->
lParam
]
&
(
1
<<
BANDID_TOOLBAR
))
...
@@ -1003,9 +1005,10 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
...
@@ -1003,9 +1005,10 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
case
WM_COMMAND
:
case
WM_COMMAND
:
switch
(
LOWORD
(
wParam
))
switch
(
LOWORD
(
wParam
))
{
{
case
IDC_PAGEFMT_WN
:
case
IDC_PAGEFMT_WW
:
case
IDC_PAGEFMT_WW
:
case
IDC_PAGEFMT_WM
:
case
IDC_PAGEFMT_WM
:
CheckRadioButton
(
hWnd
,
IDC_PAGEFMT_W
W
,
IDC_PAGEFMT_WM
,
CheckRadioButton
(
hWnd
,
IDC_PAGEFMT_W
N
,
IDC_PAGEFMT_WM
,
LOWORD
(
wParam
));
LOWORD
(
wParam
));
break
;
break
;
...
@@ -1029,7 +1032,9 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
...
@@ -1029,7 +1032,9 @@ static INT_PTR CALLBACK formatopts_proc(HWND hWnd, UINT message, WPARAM wParam,
GetWindowTextA
(
hIdWnd
,
sid
,
4
);
GetWindowTextA
(
hIdWnd
,
sid
,
4
);
id
=
atoi
(
sid
);
id
=
atoi
(
sid
);
if
(
IsDlgButtonChecked
(
hWnd
,
IDC_PAGEFMT_WW
))
if
(
IsDlgButtonChecked
(
hWnd
,
IDC_PAGEFMT_WN
))
wordWrap
[
id
]
=
ID_WORDWRAP_NONE
;
else
if
(
IsDlgButtonChecked
(
hWnd
,
IDC_PAGEFMT_WW
))
wordWrap
[
id
]
=
ID_WORDWRAP_WINDOW
;
wordWrap
[
id
]
=
ID_WORDWRAP_WINDOW
;
else
if
(
IsDlgButtonChecked
(
hWnd
,
IDC_PAGEFMT_WM
))
else
if
(
IsDlgButtonChecked
(
hWnd
,
IDC_PAGEFMT_WM
))
wordWrap
[
id
]
=
ID_WORDWRAP_MARGIN
;
wordWrap
[
id
]
=
ID_WORDWRAP_MARGIN
;
...
@@ -1819,7 +1824,7 @@ static LRESULT OnCreate( HWND hWnd )
...
@@ -1819,7 +1824,7 @@ static LRESULT OnCreate( HWND hWnd )
hEditorWnd
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
wszRichEditClass
,
NULL
,
hEditorWnd
=
CreateWindowExW
(
WS_EX_CLIENTEDGE
,
wszRichEditClass
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
ES_SELECTIONBAR
|
ES_MULTILINE
|
ES_AUTOVSCROLL
WS_CHILD
|
WS_VISIBLE
|
ES_SELECTIONBAR
|
ES_MULTILINE
|
ES_AUTOVSCROLL
|
ES_WANTRETURN
|
WS_VSCROLL
|
ES_NOHIDESEL
,
|
ES_WANTRETURN
|
WS_VSCROLL
|
ES_NOHIDESEL
|
WS_HSCROLL
,
0
,
0
,
1000
,
100
,
hWnd
,
(
HMENU
)
IDC_EDITOR
,
hInstance
,
NULL
);
0
,
0
,
1000
,
100
,
hWnd
,
(
HMENU
)
IDC_EDITOR
,
hInstance
,
NULL
);
if
(
!
hEditorWnd
)
if
(
!
hEditorWnd
)
...
...
programs/wordpad/wordpad.h
View file @
f124a586
...
@@ -114,9 +114,10 @@
...
@@ -114,9 +114,10 @@
#define IDC_PAGEFMT_FB 101
#define IDC_PAGEFMT_FB 101
#define IDC_PAGEFMT_RU 102
#define IDC_PAGEFMT_RU 102
#define IDC_PAGEFMT_SB 103
#define IDC_PAGEFMT_SB 103
#define IDC_PAGEFMT_WW 104
#define IDC_PAGEFMT_WN 104
#define IDC_PAGEFMT_WM 105
#define IDC_PAGEFMT_WW 105
#define IDC_PAGEFMT_ID 106
#define IDC_PAGEFMT_WM 106
#define IDC_PAGEFMT_ID 107
#define ID_DATETIME 1600
#define ID_DATETIME 1600
#define ID_PARAFORMAT 1601
#define ID_PARAFORMAT 1601
...
...
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