Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f44cb11a
Commit
f44cb11a
authored
Mar 31, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Constify some variables.
parent
bd51f1c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
smoothscroll.c
dlls/comctl32/smoothscroll.c
+1
-1
status.c
dlls/comctl32/status.c
+18
-18
string.c
dlls/comctl32/string.c
+2
-2
No files found.
dlls/comctl32/smoothscroll.c
View file @
f44cb11a
...
...
@@ -68,7 +68,7 @@ typedef struct tagSMOOTHSCROLLSTRUCT {
* Currently only scrolls ONCE. The comctl32 implementation uses GetTickCount
* and what else to do smooth scrolling.
*/
BOOL
WINAPI
SmoothScrollWindow
(
SMOOTHSCROLLSTRUCT
*
smooth
)
{
BOOL
WINAPI
SmoothScrollWindow
(
const
SMOOTHSCROLLSTRUCT
*
smooth
)
{
LPRECT
lpupdaterect
=
smooth
->
lpupdaterect
;
HRGN
hrgnupdate
=
smooth
->
hrgnupdate
;
RECT
tmprect
;
...
...
dlls/comctl32/status.c
View file @
f44cb11a
...
...
@@ -168,7 +168,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
static
void
STATUSBAR_DrawPart
(
STATUS_INFO
*
infoPtr
,
HDC
hdc
,
STATUSWINDOWPART
*
part
,
int
itemID
)
STATUSBAR_DrawPart
(
const
STATUS_INFO
*
infoPtr
,
HDC
hdc
,
const
STATUSWINDOWPART
*
part
,
int
itemID
)
{
RECT
r
=
part
->
bound
;
UINT
border
=
BDR_SUNKENOUTER
;
...
...
@@ -215,7 +215,7 @@ STATUSBAR_DrawPart (STATUS_INFO *infoPtr, HDC hdc, STATUSWINDOWPART *part, int i
static
void
STATUSBAR_RefreshPart
(
STATUS_INFO
*
infoPtr
,
HDC
hdc
,
STATUSWINDOWPART
*
part
,
int
itemID
)
STATUSBAR_RefreshPart
(
const
STATUS_INFO
*
infoPtr
,
HDC
hdc
,
const
STATUSWINDOWPART
*
part
,
int
itemID
)
{
HBRUSH
hbrBk
;
HFONT
hOldFont
;
...
...
@@ -357,7 +357,7 @@ STATUSBAR_SetPartBounds (STATUS_INFO *infoPtr)
static
LRESULT
STATUSBAR_Relay2Tip
(
STATUS_INFO
*
infoPtr
,
UINT
uMsg
,
STATUSBAR_Relay2Tip
(
const
STATUS_INFO
*
infoPtr
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
MSG
msg
;
...
...
@@ -375,7 +375,7 @@ STATUSBAR_Relay2Tip (STATUS_INFO *infoPtr, UINT uMsg,
static
BOOL
STATUSBAR_GetBorders
(
STATUS_INFO
*
infoPtr
,
INT
out
[])
STATUSBAR_GetBorders
(
const
STATUS_INFO
*
infoPtr
,
INT
out
[])
{
TRACE
(
"
\n
"
);
out
[
0
]
=
infoPtr
->
horizontalBorder
;
...
...
@@ -387,7 +387,7 @@ STATUSBAR_GetBorders (STATUS_INFO *infoPtr, INT out[])
static
BOOL
STATUSBAR_SetBorders
(
STATUS_INFO
*
infoPtr
,
INT
in
[])
STATUSBAR_SetBorders
(
STATUS_INFO
*
infoPtr
,
const
INT
in
[])
{
TRACE
(
"
\n
"
);
infoPtr
->
horizontalBorder
=
in
[
0
];
...
...
@@ -400,7 +400,7 @@ STATUSBAR_SetBorders (STATUS_INFO *infoPtr, INT in[])
static
HICON
STATUSBAR_GetIcon
(
STATUS_INFO
*
infoPtr
,
INT
nPart
)
STATUSBAR_GetIcon
(
const
STATUS_INFO
*
infoPtr
,
INT
nPart
)
{
TRACE
(
"%d
\n
"
,
nPart
);
/* MSDN says: "simple parts are indexed with -1" */
...
...
@@ -415,7 +415,7 @@ STATUSBAR_GetIcon (STATUS_INFO *infoPtr, INT nPart)
static
INT
STATUSBAR_GetParts
(
STATUS_INFO
*
infoPtr
,
INT
num_parts
,
INT
parts
[])
STATUSBAR_GetParts
(
const
STATUS_INFO
*
infoPtr
,
INT
num_parts
,
INT
parts
[])
{
INT
i
;
...
...
@@ -430,7 +430,7 @@ STATUSBAR_GetParts (STATUS_INFO *infoPtr, INT num_parts, INT parts[])
static
BOOL
STATUSBAR_GetRect
(
STATUS_INFO
*
infoPtr
,
INT
nPart
,
LPRECT
rect
)
STATUSBAR_GetRect
(
const
STATUS_INFO
*
infoPtr
,
INT
nPart
,
LPRECT
rect
)
{
TRACE
(
"part %d
\n
"
,
nPart
);
if
(
nPart
>=
infoPtr
->
numParts
||
nPart
<
0
)
...
...
@@ -524,7 +524,7 @@ STATUSBAR_GetTextLength (STATUS_INFO *infoPtr, INT nPart)
}
static
LRESULT
STATUSBAR_GetTipTextA
(
STATUS_INFO
*
infoPtr
,
INT
id
,
LPSTR
tip
,
INT
size
)
STATUSBAR_GetTipTextA
(
const
STATUS_INFO
*
infoPtr
,
INT
id
,
LPSTR
tip
,
INT
size
)
{
TRACE
(
"
\n
"
);
if
(
tip
)
{
...
...
@@ -546,7 +546,7 @@ STATUSBAR_GetTipTextA (STATUS_INFO *infoPtr, INT id, LPSTR tip, INT size)
static
LRESULT
STATUSBAR_GetTipTextW
(
STATUS_INFO
*
infoPtr
,
INT
id
,
LPWSTR
tip
,
INT
size
)
STATUSBAR_GetTipTextW
(
const
STATUS_INFO
*
infoPtr
,
INT
id
,
LPWSTR
tip
,
INT
size
)
{
TRACE
(
"
\n
"
);
if
(
tip
)
{
...
...
@@ -793,7 +793,7 @@ STATUSBAR_SetTextT (STATUS_INFO *infoPtr, INT nPart, WORD style,
static
LRESULT
STATUSBAR_SetTipTextA
(
STATUS_INFO
*
infoPtr
,
INT
id
,
LPSTR
text
)
STATUSBAR_SetTipTextA
(
const
STATUS_INFO
*
infoPtr
,
INT
id
,
LPSTR
text
)
{
TRACE
(
"part %d:
\"
%s
\"\n
"
,
id
,
text
);
if
(
infoPtr
->
hwndToolTip
)
{
...
...
@@ -811,7 +811,7 @@ STATUSBAR_SetTipTextA (STATUS_INFO *infoPtr, INT id, LPSTR text)
static
LRESULT
STATUSBAR_SetTipTextW
(
STATUS_INFO
*
infoPtr
,
INT
id
,
LPWSTR
text
)
STATUSBAR_SetTipTextW
(
const
STATUS_INFO
*
infoPtr
,
INT
id
,
LPWSTR
text
)
{
TRACE
(
"part %d:
\"
%s
\"\n
"
,
id
,
debugstr_w
(
text
));
if
(
infoPtr
->
hwndToolTip
)
{
...
...
@@ -892,7 +892,7 @@ STATUSBAR_WMDestroy (STATUS_INFO *infoPtr)
static
LRESULT
STATUSBAR_WMCreate
(
HWND
hwnd
,
LPCREATESTRUCTA
lpCreate
)
STATUSBAR_WMCreate
(
HWND
hwnd
,
const
CREATESTRUCTA
*
lpCreate
)
{
STATUS_INFO
*
infoPtr
;
NONCLIENTMETRICSW
nclm
;
...
...
@@ -1048,7 +1048,7 @@ create_fail:
/* in contrast to SB_GETTEXT*, WM_GETTEXT handles the text
* of the first part only (usual behaviour) */
static
INT
STATUSBAR_WMGetText
(
STATUS_INFO
*
infoPtr
,
INT
size
,
LPWSTR
buf
)
STATUSBAR_WMGetText
(
const
STATUS_INFO
*
infoPtr
,
INT
size
,
LPWSTR
buf
)
{
INT
len
;
...
...
@@ -1074,7 +1074,7 @@ STATUSBAR_WMGetText (STATUS_INFO *infoPtr, INT size, LPWSTR buf)
static
BOOL
STATUSBAR_WMNCHitTest
(
STATUS_INFO
*
infoPtr
,
INT
x
,
INT
y
)
STATUSBAR_WMNCHitTest
(
const
STATUS_INFO
*
infoPtr
,
INT
x
,
INT
y
)
{
if
(
GetWindowLongW
(
infoPtr
->
Self
,
GWL_STYLE
)
&
SBARS_SIZEGRIP
)
{
RECT
rect
;
...
...
@@ -1125,7 +1125,7 @@ STATUSBAR_WMSetFont (STATUS_INFO *infoPtr, HFONT font, BOOL redraw)
static
BOOL
STATUSBAR_WMSetText
(
STATUS_INFO
*
infoPtr
,
LPCSTR
text
)
STATUSBAR_WMSetText
(
const
STATUS_INFO
*
infoPtr
,
LPCSTR
text
)
{
STATUSWINDOWPART
*
part
;
int
len
;
...
...
@@ -1190,7 +1190,7 @@ STATUSBAR_WMSize (STATUS_INFO *infoPtr, WORD flags)
/* update theme after a WM_THEMECHANGED message */
static
LRESULT
theme_changed
(
STATUS_INFO
*
infoPtr
)
static
LRESULT
theme_changed
(
const
STATUS_INFO
*
infoPtr
)
{
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
Self
);
CloseThemeData
(
theme
);
...
...
@@ -1211,7 +1211,7 @@ STATUSBAR_NotifyFormat (STATUS_INFO *infoPtr, HWND from, INT cmd)
static
LRESULT
STATUSBAR_SendNotify
(
STATUS_INFO
*
infoPtr
,
UINT
code
)
STATUSBAR_SendNotify
(
const
STATUS_INFO
*
infoPtr
,
UINT
code
)
{
NMHDR
nmhdr
;
...
...
dlls/comctl32/string.c
View file @
f44cb11a
...
...
@@ -427,7 +427,7 @@ LPSTR WINAPI StrStrIA(LPCSTR lpszStr, LPCSTR lpszSearch)
* The signed integer value represented by the string, or 0 if no integer is
* present.
*/
INT
WINAPI
StrToIntA
(
LPSTR
lpszStr
)
INT
WINAPI
StrToIntA
(
LP
C
STR
lpszStr
)
{
return
atoi
(
lpszStr
);
}
...
...
@@ -449,7 +449,7 @@ LPWSTR WINAPI StrStrIW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
*
* See StrToIntA.
*/
INT
WINAPI
StrToIntW
(
LPWSTR
lpString
)
INT
WINAPI
StrToIntW
(
LP
C
WSTR
lpString
)
{
return
atoiW
(
lpString
);
}
...
...
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