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
851c33dd
Commit
851c33dd
authored
Oct 04, 2009
by
Sergey Khodych
Committed by
Alexandre Julliard
Oct 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Enable the dialog mode after receiving WM_GETDLGCODE message.
parent
205df00c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
editor.c
dlls/riched20/editor.c
+3
-0
editstr.h
dlls/riched20/editstr.h
+1
-0
No files found.
dlls/riched20/editor.c
View file @
851c33dd
...
...
@@ -2665,6 +2665,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
mode
|=
(
props
&
TXTBIT_RICHTEXT
)
?
TM_RICHTEXT
:
TM_PLAINTEXT
;
ed
->
AutoURLDetect_bEnable
=
FALSE
;
ed
->
bHaveFocus
=
FALSE
;
ed
->
bDialogMode
=
FALSE
;
ed
->
bMouseCaptured
=
FALSE
;
for
(
i
=
0
;
i
<
HFONT_CACHE_SIZE
;
i
++
)
{
...
...
@@ -3008,6 +3009,8 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
case
WM_GETDLGCODE
:
{
UINT
code
=
DLGC_WANTCHARS
|
DLGC_WANTTAB
|
DLGC_WANTARROWS
|
DLGC_HASSETSEL
;
if
(
lParam
)
editor
->
bDialogMode
=
TRUE
;
if
(
editor
->
styleFlags
&
ES_MULTILINE
)
code
|=
DLGC_WANTMESSAGE
;
return
code
;
...
...
dlls/riched20/editstr.h
View file @
851c33dd
...
...
@@ -370,6 +370,7 @@ typedef struct tagME_TextEditor
BOOL
AutoURLDetect_bEnable
;
WCHAR
cPasswordMask
;
BOOL
bHaveFocus
;
BOOL
bDialogMode
;
/* Indicates that we are inside a dialog window */
/*for IME */
int
imeStartIndex
;
DWORD
selofs
;
/* The size of the selection bar on the left side of control */
...
...
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