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
7a8eb4c5
Commit
7a8eb4c5
authored
Nov 20, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Constify some variables.
parent
029a74e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
listbox.c
dlls/user32/listbox.c
+12
-12
No files found.
dlls/user32/listbox.c
View file @
7a8eb4c5
...
...
@@ -131,7 +131,7 @@ static TIMER_DIRECTION LISTBOX_Timer = LB_TIMER_NONE;
static
LRESULT
WINAPI
ListBoxWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ListBoxWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
LISTBOX_GetItemRect
(
LB_DESCR
*
descr
,
INT
index
,
RECT
*
rect
);
static
LRESULT
LISTBOX_GetItemRect
(
const
LB_DESCR
*
descr
,
INT
index
,
RECT
*
rect
);
/*********************************************************************
* listbox class descriptor
...
...
@@ -177,7 +177,7 @@ static inline BOOL is_old_app( LB_DESCR *descr )
*
* Return the current page size
*/
static
INT
LISTBOX_GetCurrentPageSize
(
LB_DESCR
*
descr
)
static
INT
LISTBOX_GetCurrentPageSize
(
const
LB_DESCR
*
descr
)
{
INT
i
,
height
;
if
(
!
(
descr
->
style
&
LBS_OWNERDRAWVARIABLE
))
return
descr
->
page_size
;
...
...
@@ -195,7 +195,7 @@ static INT LISTBOX_GetCurrentPageSize( LB_DESCR *descr )
*
* Return the maximum possible index for the top of the listbox.
*/
static
INT
LISTBOX_GetMaxTopIndex
(
LB_DESCR
*
descr
)
static
INT
LISTBOX_GetMaxTopIndex
(
const
LB_DESCR
*
descr
)
{
INT
max
,
page
;
...
...
@@ -432,7 +432,7 @@ static void LISTBOX_UpdateSize( LB_DESCR *descr )
* Get the rectangle enclosing an item, in listbox client coordinates.
* Return 1 if the rectangle is (partially) visible, 0 if hidden, -1 on error.
*/
static
LRESULT
LISTBOX_GetItemRect
(
LB_DESCR
*
descr
,
INT
index
,
RECT
*
rect
)
static
LRESULT
LISTBOX_GetItemRect
(
const
LB_DESCR
*
descr
,
INT
index
,
RECT
*
rect
)
{
/* Index <= 0 is legal even on empty listboxes */
if
(
index
&&
(
index
>=
descr
->
nb_items
))
...
...
@@ -490,7 +490,7 @@ static LRESULT LISTBOX_GetItemRect( LB_DESCR *descr, INT index, RECT *rect )
*
* Return the item nearest from point (x,y) (in client coordinates).
*/
static
INT
LISTBOX_GetItemFromPoint
(
LB_DESCR
*
descr
,
INT
x
,
INT
y
)
static
INT
LISTBOX_GetItemFromPoint
(
const
LB_DESCR
*
descr
,
INT
x
,
INT
y
)
{
INT
index
=
descr
->
top_item
;
...
...
@@ -999,10 +999,10 @@ static INT LISTBOX_FindString( LB_DESCR *descr, INT start, LPCWSTR str, BOOL exa
/***********************************************************************
* LISTBOX_GetSelCount
*/
static
LRESULT
LISTBOX_GetSelCount
(
LB_DESCR
*
descr
)
static
LRESULT
LISTBOX_GetSelCount
(
const
LB_DESCR
*
descr
)
{
INT
i
,
count
;
LB_ITEMDATA
*
item
=
descr
->
items
;
const
LB_ITEMDATA
*
item
=
descr
->
items
;
if
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
)
||
(
descr
->
style
&
LBS_NOSEL
))
...
...
@@ -1016,10 +1016,10 @@ static LRESULT LISTBOX_GetSelCount( LB_DESCR *descr )
/***********************************************************************
* LISTBOX_GetSelItems16
*/
static
LRESULT
LISTBOX_GetSelItems16
(
LB_DESCR
*
descr
,
INT16
max
,
LPINT16
array
)
static
LRESULT
LISTBOX_GetSelItems16
(
const
LB_DESCR
*
descr
,
INT16
max
,
LPINT16
array
)
{
INT
i
,
count
;
LB_ITEMDATA
*
item
=
descr
->
items
;
const
LB_ITEMDATA
*
item
=
descr
->
items
;
if
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
))
return
LB_ERR
;
for
(
i
=
count
=
0
;
(
i
<
descr
->
nb_items
)
&&
(
count
<
max
);
i
++
,
item
++
)
...
...
@@ -1031,10 +1031,10 @@ static LRESULT LISTBOX_GetSelItems16( LB_DESCR *descr, INT16 max, LPINT16 array
/***********************************************************************
* LISTBOX_GetSelItems
*/
static
LRESULT
LISTBOX_GetSelItems
(
LB_DESCR
*
descr
,
INT
max
,
LPINT
array
)
static
LRESULT
LISTBOX_GetSelItems
(
const
LB_DESCR
*
descr
,
INT
max
,
LPINT
array
)
{
INT
i
,
count
;
LB_ITEMDATA
*
item
=
descr
->
items
;
const
LB_ITEMDATA
*
item
=
descr
->
items
;
if
(
!
(
descr
->
style
&
LBS_MULTIPLESEL
))
return
LB_ERR
;
for
(
i
=
count
=
0
;
(
i
<
descr
->
nb_items
)
&&
(
count
<
max
);
i
++
,
item
++
)
...
...
@@ -1200,7 +1200,7 @@ static void LISTBOX_InvalidateItemRect( LB_DESCR *descr, INT index )
/***********************************************************************
* LISTBOX_GetItemHeight
*/
static
LRESULT
LISTBOX_GetItemHeight
(
LB_DESCR
*
descr
,
INT
index
)
static
LRESULT
LISTBOX_GetItemHeight
(
const
LB_DESCR
*
descr
,
INT
index
)
{
if
(
descr
->
style
&
LBS_OWNERDRAWVARIABLE
&&
descr
->
nb_items
>
0
)
{
...
...
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