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
72516401
Commit
72516401
authored
Jul 15, 2000
by
Susan Farley
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't clear selection when initial entry is not in the list.
parent
ce4784d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
combo.c
controls/combo.c
+12
-7
No files found.
controls/combo.c
View file @
72516401
...
...
@@ -1055,11 +1055,14 @@ static INT CBUpdateLBox( LPHEADCOMBO lphc, BOOL bSelect )
HeapFree
(
GetProcessHeap
(),
0
,
pText
);
}
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETCURSEL
,
(
WPARAM
)(
bSelect
?
idx
:
-
1
),
0
);
if
(
idx
>=
0
)
{
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETCURSEL
,
(
WPARAM
)(
bSelect
?
idx
:
-
1
),
0
);
/* probably superfluous but Windows sends this too */
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETCARETINDEX
,
(
WPARAM
)(
idx
<
0
?
0
:
idx
),
0
);
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETTOPINDEX
,
(
WPARAM
)(
idx
<
0
?
0
:
idx
),
0
);
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETCARETINDEX
,
(
WPARAM
)(
idx
<
0
?
0
:
idx
),
0
);
SendMessageA
(
lphc
->
hWndLBox
,
LB_SETTOPINDEX
,
(
WPARAM
)(
idx
<
0
?
0
:
idx
),
0
);
}
return
idx
;
}
...
...
@@ -1086,11 +1089,13 @@ static void CBUpdateEdit( LPHEADCOMBO lphc , INT index )
(
WPARAM
)
index
,
(
LPARAM
)
pText
);
}
}
}
lphc
->
wState
|=
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
SendMessageA
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
pText
?
(
LPARAM
)
pText
:
(
LPARAM
)
""
);
lphc
->
wState
&=
~
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
lphc
->
wState
|=
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
SendMessageA
(
lphc
->
hWndEdit
,
WM_SETTEXT
,
0
,
pText
?
(
LPARAM
)
pText
:
(
LPARAM
)
""
);
lphc
->
wState
&=
~
(
CBF_NOEDITNOTIFY
|
CBF_NOLBSELECT
);
}
else
InvalidateRect
(
CB_HWND
(
lphc
),
&
lphc
->
textRect
,
TRUE
);
if
(
lphc
->
wState
&
CBF_FOCUSED
)
SendMessageA
(
lphc
->
hWndEdit
,
EM_SETSEL
,
0
,
(
LPARAM
)(
-
1
)
);
...
...
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