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
8bd48fd6
Commit
8bd48fd6
authored
Oct 31, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/edit: Handle focused cue text.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa601fdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
edit.c
dlls/comctl32/edit.c
+6
-6
No files found.
dlls/comctl32/edit.c
View file @
8bd48fd6
...
@@ -129,7 +129,9 @@ typedef struct
...
@@ -129,7 +129,9 @@ typedef struct
should be sent to the first parent. */
should be sent to the first parent. */
HWND
hwndListBox
;
/* handle of ComboBox's listbox or NULL */
HWND
hwndListBox
;
/* handle of ComboBox's listbox or NULL */
INT
wheelDeltaRemainder
;
/* scroll wheel delta left over after scrolling whole lines */
INT
wheelDeltaRemainder
;
/* scroll wheel delta left over after scrolling whole lines */
WCHAR
*
cue_banner_text
;
WCHAR
*
cue_banner_text
;
BOOL
cue_banner_draw_focused
;
/*
/*
* only for multi line controls
* only for multi line controls
*/
*/
...
@@ -2181,7 +2183,7 @@ static void EDIT_PaintLine(EDITSTATE *es, HDC dc, INT line, BOOL rev)
...
@@ -2181,7 +2183,7 @@ static void EDIT_PaintLine(EDITSTATE *es, HDC dc, INT line, BOOL rev)
}
else
}
else
x
+=
EDIT_PaintText
(
es
,
dc
,
x
,
y
,
line
,
0
,
ll
,
FALSE
);
x
+=
EDIT_PaintText
(
es
,
dc
,
x
,
y
,
line
,
0
,
ll
,
FALSE
);
if
(
es
->
cue_banner_text
&&
es
->
text_length
==
0
&&
!
(
es
->
flags
&
EF_FOCUSED
))
if
(
es
->
cue_banner_text
&&
es
->
text_length
==
0
&&
(
!
(
es
->
flags
&
EF_FOCUSED
)
||
es
->
cue_banner_draw_focused
))
{
{
SetTextColor
(
dc
,
GetSysColor
(
COLOR_GRAYTEXT
));
SetTextColor
(
dc
,
GetSysColor
(
COLOR_GRAYTEXT
));
TextOutW
(
dc
,
x
,
y
,
es
->
cue_banner_text
,
strlenW
(
es
->
cue_banner_text
));
TextOutW
(
dc
,
x
,
y
,
es
->
cue_banner_text
,
strlenW
(
es
->
cue_banner_text
));
...
@@ -4170,16 +4172,14 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
...
@@ -4170,16 +4172,14 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
* EM_SETCUEBANNER
* EM_SETCUEBANNER
*
*
*/
*/
static
BOOL
EDIT_EM_SetCueBanner
(
EDITSTATE
*
es
,
BOOL
focus
,
const
WCHAR
*
cue_text
)
static
BOOL
EDIT_EM_SetCueBanner
(
EDITSTATE
*
es
,
BOOL
draw_focused
,
const
WCHAR
*
cue_text
)
{
{
if
(
es
->
style
&
ES_MULTILINE
||
!
cue_text
)
if
(
es
->
style
&
ES_MULTILINE
||
!
cue_text
)
return
FALSE
;
return
FALSE
;
if
(
focus
)
FIXME
(
"cue banner for focused control not implemented.
\n
"
);
heap_free
(
es
->
cue_banner_text
);
heap_free
(
es
->
cue_banner_text
);
es
->
cue_banner_text
=
heap_strdupW
(
cue_text
);
es
->
cue_banner_text
=
heap_strdupW
(
cue_text
);
es
->
cue_banner_draw_focused
=
draw_focused
;
return
TRUE
;
return
TRUE
;
}
}
...
...
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