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
85ba8798
Commit
85ba8798
authored
Jan 06, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Jan 06, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Took a stab at implementing LBS_NOSEL.
parent
ad29b90d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
listbox.c
controls/listbox.c
+8
-1
No files found.
controls/listbox.c
View file @
85ba8798
...
...
@@ -24,10 +24,12 @@ DEFAULT_DEBUG_CHANNEL(listbox);
DECLARE_DEBUG_CHANNEL
(
combo
);
/* Unimplemented yet:
* - LBS_NOSEL
* - LBS_USETABSTOPS
* - Unicode
* - Locale handling
*
* Probably needs improvement:
* - LBS_NOSEL
*/
/* Items array granularity */
...
...
@@ -1288,6 +1290,7 @@ static LRESULT LISTBOX_SetCaretIndex( WND *wnd, LB_DESCR *descr, INT index,
{
INT
oldfocus
=
descr
->
focus_item
;
if
(
descr
->
style
&
LBS_NOSEL
)
return
LB_ERR
;
if
((
index
<
0
)
||
(
index
>=
descr
->
nb_items
))
return
LB_ERR
;
if
(
index
==
oldfocus
)
return
LB_OKAY
;
descr
->
focus_item
=
index
;
...
...
@@ -1314,6 +1317,7 @@ static LRESULT LISTBOX_SelectItemRange( WND *wnd, LB_DESCR *descr, INT first,
/* A few sanity checks */
if
(
descr
->
style
&
LBS_NOSEL
)
return
LB_ERR
;
if
((
last
==
-
1
)
&&
(
descr
->
nb_items
==
0
))
return
LB_OKAY
;
if
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
))
return
LB_ERR
;
if
(
last
==
-
1
)
last
=
descr
->
nb_items
-
1
;
...
...
@@ -1352,6 +1356,7 @@ static LRESULT LISTBOX_SetSelection( WND *wnd, LB_DESCR *descr, INT index,
{
TRACE
(
"index=%d notify=%s
\n
"
,
index
,
send_notify
?
"YES"
:
"NO"
);
if
(
descr
->
style
&
LBS_NOSEL
)
return
LB_ERR
;
if
((
index
<
-
1
)
||
(
index
>=
descr
->
nb_items
))
return
LB_ERR
;
if
(
descr
->
style
&
LBS_MULTIPLESEL
)
{
...
...
@@ -2376,6 +2381,7 @@ static BOOL LISTBOX_Create( WND *wnd, LPHEADCOMBO lphc )
descr
->
nb_tabs
=
0
;
descr
->
tabs
=
NULL
;
descr
->
caret_on
=
lphc
?
FALSE
:
TRUE
;
if
(
descr
->
style
&
LBS_NOSEL
)
descr
->
caret_on
=
FALSE
;
descr
->
in_focus
=
FALSE
;
descr
->
captured
=
FALSE
;
descr
->
font
=
0
;
...
...
@@ -2429,6 +2435,7 @@ static BOOL LISTBOX_Create( WND *wnd, LPHEADCOMBO lphc )
}
}
TRACE
(
"owner: %04x, style: %08x, width: %d, height: %d
\n
"
,
descr
->
owner
,
descr
->
style
,
descr
->
width
,
descr
->
height
);
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