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
db094db8
Commit
db094db8
authored
Mar 28, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't return DLGC_HASSETSEL from WM_GETDLGCODE if the control style includes ES_SAVESEL.
parent
5963d7f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
editor.c
dlls/riched20/editor.c
+4
-1
editor.c
dlls/riched20/tests/editor.c
+10
-0
No files found.
dlls/riched20/editor.c
View file @
db094db8
...
...
@@ -3142,11 +3142,14 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
return
ME_StreamOut
(
editor
,
wParam
,
(
EDITSTREAM
*
)
lParam
);
case
WM_GETDLGCODE
:
{
UINT
code
=
DLGC_WANTCHARS
|
DLGC_WANTTAB
|
DLGC_WANTARROWS
|
DLGC_HASSETSEL
;
UINT
code
=
DLGC_WANTCHARS
|
DLGC_WANTTAB
|
DLGC_WANTARROWS
;
if
(
lParam
)
editor
->
bDialogMode
=
TRUE
;
if
(
editor
->
styleFlags
&
ES_MULTILINE
)
code
|=
DLGC_WANTMESSAGE
;
if
(
!
(
editor
->
styleFlags
&
ES_SAVESEL
))
code
|=
DLGC_HASSETSEL
;
return
code
;
}
case
EM_EMPTYUNDOBUFFER
:
...
...
dlls/riched20/tests/editor.c
View file @
db094db8
...
...
@@ -6729,6 +6729,16 @@ static void test_WM_GETDLGCODE(void)
ok
(
res
==
expected
,
"WM_GETDLGCODE returned %x but expected %x
\n
"
,
res
,
expected
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowExA
(
0
,
RICHEDIT_CLASS20A
,
NULL
,
WS_POPUP
|
ES_SAVESEL
,
0
,
0
,
200
,
60
,
NULL
,
NULL
,
hmoduleRichEdit
,
NULL
);
ok
(
hwnd
!=
NULL
,
"class: %s, error: %d
\n
"
,
RICHEDIT_CLASS20A
,
(
int
)
GetLastError
());
res
=
SendMessageA
(
hwnd
,
WM_GETDLGCODE
,
0
,
0
);
expected
=
DLGC_WANTCHARS
|
DLGC_WANTTAB
|
DLGC_WANTARROWS
;
ok
(
res
==
expected
,
"WM_GETDLGCODE returned %x but expected %x
\n
"
,
res
,
expected
);
DestroyWindow
(
hwnd
);
}
static
void
test_zoom
(
void
)
...
...
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