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
3cb685c8
Commit
3cb685c8
authored
Jul 23, 2008
by
Hongbo Ni
Committed by
Alexandre Julliard
Jul 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched32: Implement WM_UNICHAR support.
parent
aaf67e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
editor.c
dlls/riched20/editor.c
+22
-6
No files found.
dlls/riched20/editor.c
View file @
3cb685c8
...
...
@@ -140,10 +140,10 @@
+ WM_SETTEXT (resets undo stack !) (proper style?) ANSI&Unicode
- WM_STYLECHANGING
- WM_STYLECHANGED (things like read-only flag)
-
WM_UNICHAR
+
WM_UNICHAR
Notifications
* EN_CHANGE (sent from the wrong place)
- EN_CORRECTTEXT
- EN_DROPFILES
...
...
@@ -2101,10 +2101,9 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
UNSUPPORTED_MSG
(
EM_SETWORDBREAKPROCEX
)
UNSUPPORTED_MSG
(
WM_STYLECHANGING
)
UNSUPPORTED_MSG
(
WM_STYLECHANGED
)
/* UNSUPPORTED_MSG(WM_UNICHAR) FIXME missing in Wine headers */
/* Messages specific to Richedit controls */
case
EM_STREAMIN
:
return
ME_StreamIn
(
editor
,
wParam
,
(
EDITSTREAM
*
)
lParam
,
TRUE
);
case
EM_STREAMOUT
:
...
...
@@ -3263,6 +3262,23 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
}
return
0
;
}
case
WM_UNICHAR
:
if
(
unicode
)
{
if
(
wParam
==
UNICODE_NOCHAR
)
return
TRUE
;
if
(
wParam
<=
0x000fffff
)
{
if
(
wParam
>
0xffff
)
/* convert to surrogates */
{
wParam
-=
0x10000
;
SendMessageW
(
editor
->
hWnd
,
WM_CHAR
,
(
wParam
>>
10
)
+
0xd800
,
0
);
SendMessageW
(
editor
->
hWnd
,
WM_CHAR
,
(
wParam
&
0x03ff
)
+
0xdc00
,
0
);
}
else
SendMessageW
(
editor
->
hWnd
,
WM_CHAR
,
wParam
,
0
);
}
return
0
;
}
break
;
case
EM_STOPGROUPTYPING
:
ME_CommitUndo
(
editor
);
/* End coalesced undos for typed characters */
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