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
566dcd78
Commit
566dcd78
authored
Oct 09, 2008
by
Andrey Turkin
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Fix some unicode bugs.
parent
2b001312
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
En.rc
programs/wordpad/En.rc
+1
-0
Ru.rc
programs/wordpad/Ru.rc
+1
-0
wordpad.c
programs/wordpad/wordpad.c
+7
-8
wordpad.h
programs/wordpad/wordpad.h
+1
-0
No files found.
programs/wordpad/En.rc
View file @
566dcd78
...
...
@@ -238,4 +238,5 @@ BEGIN
STRING_WRITE_ACCESS_DENIED, "You do not have access to save the file."
STRING_OPEN_FAILED, "Could not open the file."
STRING_OPEN_ACCESS_DENIED, "You do not have access to open the file."
STRING_PRINTING_NOT_IMPLEMENTED, "Printing not implemented"
END
programs/wordpad/Ru.rc
View file @
566dcd78
...
...
@@ -234,4 +234,5 @@ BEGIN
" ?"
STRING_INVALID_NUMBER, " "
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage "
STRING_PRINTING_NOT_IMPLEMENTED, " "
END
programs/wordpad/wordpad.c
View file @
566dcd78
...
...
@@ -49,11 +49,10 @@
#endif
/* use LoadString */
static
const
WCHAR
x
szAppTitle
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'W'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
0
};
static
const
WCHAR
w
szAppTitle
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'W'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
0
};
static
const
WCHAR
wszRichEditClass
[]
=
{
'R'
,
'I'
,
'C'
,
'H'
,
'E'
,
'D'
,
'I'
,
'T'
,
'2'
,
'0'
,
'W'
,
0
};
static
const
WCHAR
wszMainWndClass
[]
=
{
'W'
,
'O'
,
'R'
,
'D'
,
'P'
,
'A'
,
'D'
,
'T'
,
'O'
,
'P'
,
0
};
static
const
WCHAR
wszAppTitle
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'W'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
0
};
static
const
WCHAR
stringFormat
[]
=
{
'%'
,
'2'
,
'd'
,
'\0'
};
...
...
@@ -1153,7 +1152,7 @@ static void HandleCommandLine(LPWSTR cmdline)
}
if
(
opt_print
)
MessageBox
(
hMainWnd
,
"Printing not implemented"
,
"WordPad"
,
MB_OK
);
MessageBox
W
(
hMainWnd
,
MAKEINTRESOURCEW
(
STRING_PRINTING_NOT_IMPLEMENTED
),
wszAppTitle
,
MB_OK
);
}
static
LRESULT
handle_findmsg
(
LPFINDREPLACEW
pFr
)
...
...
@@ -1946,8 +1945,8 @@ static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
sprintf
(
buf
,
"selection = %d..%d, line count=%ld"
,
pSC
->
chrg
.
cpMin
,
pSC
->
chrg
.
cpMax
,
SendMessage
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SetWindowText
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
SendMessage
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SetWindowText
A
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
SendMessage
(
hWnd
,
WM_USER
,
0
,
0
);
return
1
;
}
...
...
@@ -2136,7 +2135,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
TEXTRANGEW
tr
;
GetWindowTextW
(
hwndEditor
,
data
,
nLen
+
1
);
MessageBoxW
(
NULL
,
data
,
x
szAppTitle
,
MB_OK
);
MessageBoxW
(
NULL
,
data
,
w
szAppTitle
,
MB_OK
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
nLen
+
1
)
*
sizeof
(
WCHAR
));
...
...
@@ -2144,7 +2143,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
tr
.
chrg
.
cpMax
=
nLen
;
tr
.
lpstrText
=
data
;
SendMessage
(
hwndEditor
,
EM_GETTEXTRANGE
,
0
,
(
LPARAM
)
&
tr
);
MessageBoxW
(
NULL
,
data
,
x
szAppTitle
,
MB_OK
);
MessageBoxW
(
NULL
,
data
,
w
szAppTitle
,
MB_OK
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
/* SendMessage(hwndEditor, EM_SETSEL, 0, -1); */
...
...
@@ -2184,7 +2183,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessage
(
hwndEditor
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
data
);
sprintf
(
buf
,
"Start = %d, End = %d"
,
range
.
cpMin
,
range
.
cpMax
);
MessageBoxA
(
hWnd
,
buf
,
"Editor"
,
MB_OK
);
MessageBoxW
(
hWnd
,
data
,
x
szAppTitle
,
MB_OK
);
MessageBoxW
(
hWnd
,
data
,
w
szAppTitle
,
MB_OK
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
/* SendMessage(hwndEditor, EM_SETSEL, 0, -1); */
return
0
;
...
...
programs/wordpad/wordpad.h
View file @
566dcd78
...
...
@@ -197,6 +197,7 @@
#define STRING_WRITE_ACCESS_DENIED 1708
#define STRING_OPEN_FAILED 1709
#define STRING_OPEN_ACCESS_DENIED 1710
#define STRING_PRINTING_NOT_IMPLEMENTED 1711
LPWSTR
file_basename
(
LPWSTR
);
...
...
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