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
aed79e58
Commit
aed79e58
authored
Sep 10, 1999
by
Pascal Lessard
Committed by
Alexandre Julliard
Sep 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the behavior around the ES_WANTRETURN style in the edit
control.
parent
540a2274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
edit.c
controls/edit.c
+17
-1
No files found.
controls/edit.c
View file @
aed79e58
...
...
@@ -2894,9 +2894,11 @@ static BOOL EDIT_EM_Undo(WND *wnd, EDITSTATE *es)
static
void
EDIT_WM_Char
(
WND
*
wnd
,
EDITSTATE
*
es
,
CHAR
c
,
DWORD
key_data
)
{
BOOL
control
=
GetKeyState
(
VK_CONTROL
)
&
0x8000
;
switch
(
c
)
{
case
'\r'
:
/* If the edit doesn't want the return, do nothing */
if
(
!
(
es
->
style
&
ES_WANTRETURN
))
break
;
case
'\n'
:
if
(
es
->
style
&
ES_MULTILINE
)
{
if
(
es
->
style
&
ES_READONLY
)
{
...
...
@@ -3436,6 +3438,20 @@ static LRESULT EDIT_WM_KeyDown(WND *wnd, EDITSTATE *es, INT key, DWORD key_data)
}
else
if
(
control
)
EDIT_WM_Copy
(
wnd
,
es
);
break
;
case
VK_RETURN
:
/* If the edit doesn't want the return send a message to the default object */
if
(
!
(
es
->
style
&
ES_WANTRETURN
))
{
HWND
hwndParent
=
GetParent
(
wnd
->
hwndSelf
);
DWORD
dw
=
SendMessage16
(
hwndParent
,
DM_GETDEFID
,
0
,
0
);
if
(
HIWORD
(
dw
)
==
DC_HASDEFID
)
{
SendMessageA
(
hwndParent
,
WM_COMMAND
,
MAKEWPARAM
(
LOWORD
(
dw
),
BN_CLICKED
),
(
LPARAM
)
GetDlgItem
(
hwndParent
,
LOWORD
(
dw
)
)
);
}
}
break
;
}
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