Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
87880c5e
Commit
87880c5e
authored
24 years ago
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed notifications of the edit control.
parent
d36a3ef3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controls/edit.c
+19
-6
19 additions, 6 deletions
controls/edit.c
with
19 additions
and
6 deletions
controls/edit.c
+
19
−
6
View file @
87880c5e
...
...
@@ -133,10 +133,16 @@ typedef struct
(SendMessageW((wnd)->parent->hwndSelf, WM_CTLCOLOREDIT, \
(WPARAM)(hdc), (LPARAM)(wnd)->hwndSelf))
#define EDIT_NOTIFY_PARENT(wnd, wNotifyCode, str) \
do {DPRINTF_EDIT_NOTIFY((wnd)->parent->hwndSelf, str); \
SendMessageW((wnd)->parent->hwndSelf, WM_COMMAND, \
do \
{
/* Notify parent only if it is non-child or combobox */
\
if(!((wnd)->parent->dwStyle & WS_CHILD) || es->hwndListBox) \
{ \
DPRINTF_EDIT_NOTIFY((wnd)->parent->hwndSelf, str); \
SendMessageW((wnd)->parent->hwndSelf, WM_COMMAND, \
MAKEWPARAM((wnd)->wIDmenu, wNotifyCode), \
(LPARAM)(wnd)->hwndSelf);} while(0)
(LPARAM)(wnd)->hwndSelf); \
} \
} while(0)
#define DPRINTF_EDIT_MSG16(str) \
TRACE(\
"16 bit : " str ": hwnd=%08x, wParam=%08x, lParam=%08x\n", \
...
...
@@ -4224,7 +4230,8 @@ static LRESULT EDIT_WM_NCCreate(WND *wnd, DWORD style, HWND hwndParent, BOOL uni
EDITSTATE
*
es
;
UINT
alloc_size
;
TRACE
(
"Creating %s edit control
\n
"
,
unicode
?
"Unicode"
:
"ANSI"
);
TRACE
(
"Creating %s edit control, style = %08lx
\n
"
,
unicode
?
"Unicode"
:
"ANSI"
,
style
);
if
(
!
(
es
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
es
))))
return
FALSE
;
...
...
@@ -4512,13 +4519,19 @@ static void EDIT_WM_SetText(WND *wnd, EDITSTATE *es, LPARAM lParam, BOOL unicode
EDIT_EM_SetSel
(
wnd
,
es
,
0
,
(
UINT
)
-
1
,
FALSE
);
if
(
text
)
{
TRACE
(
"%s
\n
"
,
debugstr_w
(
text
));
EDIT_EM_ReplaceSel
(
wnd
,
es
,
FALSE
,
text
,
!
(
es
->
style
&
(
ES_MULTILINE
|
ES_COMBO
)));
/* edit control doesn't send notification on WM_SETTEXT
* if it is multiline, or it is part of combobox
*/
EDIT_EM_ReplaceSel
(
wnd
,
es
,
FALSE
,
text
,
!
((
es
->
style
&
ES_MULTILINE
)
||
es
->
hwndListBox
));
if
(
!
unicode
)
HeapFree
(
GetProcessHeap
(),
0
,
text
);
}
else
{
static
const
WCHAR
empty_stringW
[]
=
{
0
};
TRACE
(
"<NULL>
\n
"
);
EDIT_EM_ReplaceSel
(
wnd
,
es
,
FALSE
,
empty_stringW
,
!
(
es
->
style
&
(
ES_MULTILINE
|
ES_COMBO
)));
/* edit control doesn't send notification on WM_SETTEXT
* if it is multiline, or it is part of combobox
*/
EDIT_EM_ReplaceSel
(
wnd
,
es
,
FALSE
,
empty_stringW
,
!
((
es
->
style
&
ES_MULTILINE
)
||
es
->
hwndListBox
));
}
es
->
x_offset
=
0
;
es
->
flags
&=
~
EF_MODIFIED
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment