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
5354b974
Commit
5354b974
authored
Jul 24, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/autocomplete: Really append suggested part instead of replacing whole string.
parent
2210e9bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
autocomplete.c
dlls/shell32/autocomplete.c
+9
-4
No files found.
dlls/shell32/autocomplete.c
View file @
5354b974
...
...
@@ -486,7 +486,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
}
return
CallWindowProcW
(
This
->
wpOrigEditProc
,
hwnd
,
uMsg
,
wParam
,
lParam
);
case
WM_KEYUP
:
GetWindowTextW
(
hwnd
,
hwndText
,
255
);
GetWindowTextW
(
hwnd
,
hwndText
,
sizeof
(
hwndText
)
/
sizeof
(
WCHAR
)
);
switch
(
wParam
)
{
case
VK_RETURN
:
...
...
@@ -591,11 +591,16 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
if
(
StrStrIW
(
strs
,
hwndText
)
==
strs
)
{
if
(
!
filled
&&
(
This
->
options
&
ACO_AUTOAPPEND
))
{
SetWindowTextW
(
hwnd
,
strs
);
SendMessageW
(
hwnd
,
EM_SETSEL
,
lstrlenW
(
hwndText
),
lstrlenW
(
strs
));
INT
typed_length
=
strlenW
(
hwndText
);
WCHAR
buffW
[
255
];
strcpyW
(
buffW
,
hwndText
);
strcatW
(
buffW
,
&
strs
[
typed_length
]);
SetWindowTextW
(
hwnd
,
buffW
);
SendMessageW
(
hwnd
,
EM_SETSEL
,
typed_length
,
strlenW
(
strs
));
if
(
!
(
This
->
options
&
ACO_AUTOSUGGEST
))
break
;
}
}
if
(
This
->
options
&
ACO_AUTOSUGGEST
)
{
SendMessageW
(
This
->
hwndListBox
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
strs
);
...
...
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