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
94ebade2
Commit
94ebade2
authored
Mar 22, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Constify some variables.
parent
f63233d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
commctrl.c
dlls/comctl32/commctrl.c
+10
-9
commctrl.h
include/commctrl.h
+3
-3
No files found.
dlls/comctl32/commctrl.c
View file @
94ebade2
...
...
@@ -378,10 +378,10 @@ ShowHideMenuCtl (HWND hwnd, UINT_PTR uFlags, LPINT lpInfo)
*/
VOID
WINAPI
GetEffectiveClientRect
(
HWND
hwnd
,
LPRECT
lpRect
,
LPINT
lpInfo
)
GetEffectiveClientRect
(
HWND
hwnd
,
LPRECT
lpRect
,
const
INT
*
lpInfo
)
{
RECT
rcCtrl
;
INT
*
lpRun
;
const
INT
*
lpRun
;
HWND
hwndCtrl
;
TRACE
(
"(%p %p %p)
\n
"
,
...
...
@@ -426,7 +426,7 @@ GetEffectiveClientRect (HWND hwnd, LPRECT lpRect, LPINT lpInfo)
* (will be written ...)
*/
void
WINAPI
DrawStatusTextW
(
HDC
hdc
,
LPRECT
lprc
,
LPCWSTR
text
,
UINT
style
)
void
WINAPI
DrawStatusTextW
(
HDC
hdc
,
LP
C
RECT
lprc
,
LPCWSTR
text
,
UINT
style
)
{
RECT
r
=
*
lprc
;
UINT
border
=
BDR_SUNKENOUTER
;
...
...
@@ -475,7 +475,7 @@ void WINAPI DrawStatusTextW (HDC hdc, LPRECT lprc, LPCWSTR text, UINT style)
* No return value.
*/
void
WINAPI
DrawStatusTextA
(
HDC
hdc
,
LPRECT
lprc
,
LPCSTR
text
,
UINT
style
)
void
WINAPI
DrawStatusTextA
(
HDC
hdc
,
LP
C
RECT
lprc
,
LPCSTR
text
,
UINT
style
)
{
INT
len
;
LPWSTR
textW
=
NULL
;
...
...
@@ -743,7 +743,8 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
{
HGLOBAL
hglb
;
HRSRC
hRsrc
;
LPBITMAPINFOHEADER
lpBitmap
,
lpBitmapInfo
;
const
BITMAPINFOHEADER
*
lpBitmap
;
LPBITMAPINFOHEADER
lpBitmapInfo
;
UINT
nSize
,
nColorTableSize
,
iColor
;
RGBQUAD
*
pColorTable
;
INT
i
,
iMaps
,
nWidth
,
nHeight
;
...
...
@@ -819,7 +820,7 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
if
(
hbm
)
{
HDC
hdcDst
=
CreateCompatibleDC
(
hdcScreen
);
HBITMAP
hbmOld
=
SelectObject
(
hdcDst
,
hbm
);
LPBYTE
lpBits
=
(
LPBYTE
)(
lpBitmap
+
1
);
const
BYTE
*
lpBits
=
(
const
BYTE
*
)(
lpBitmap
+
1
);
lpBits
+=
nColorTableSize
*
sizeof
(
RGBQUAD
);
StretchDIBits
(
hdcDst
,
0
,
0
,
nWidth
,
nHeight
,
0
,
0
,
nWidth
,
nHeight
,
lpBits
,
(
LPBITMAPINFO
)
lpBitmapInfo
,
DIB_RGB_COLORS
,
...
...
@@ -1087,8 +1088,8 @@ BOOL WINAPI SetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
BOOL
WINAPI
GetWindowSubclass
(
HWND
hWnd
,
SUBCLASSPROC
pfnSubclass
,
UINT_PTR
uID
,
DWORD_PTR
*
pdwRef
)
{
LPSUBCLASS_INFO
stack
;
LPSUBCLASSPROCS
proc
;
const
SUBCLASS_INFO
*
stack
;
const
SUBCLASSPROCS
*
proc
;
TRACE
(
"(%p, %p, %x, %p)
\n
"
,
hWnd
,
pfnSubclass
,
uID
,
pdwRef
);
...
...
@@ -1254,7 +1255,7 @@ LRESULT WINAPI DefSubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
else
ret
=
CallWindowProcA
(
stack
->
origproc
,
hWnd
,
uMsg
,
wParam
,
lParam
);
}
else
{
LPSUBCLASSPROCS
proc
=
stack
->
stackpos
;
const
SUBCLASSPROCS
*
proc
=
stack
->
stackpos
;
stack
->
stackpos
=
stack
->
stackpos
->
next
;
/* call the Subclass procedure from the stack */
ret
=
proc
->
subproc
(
hWnd
,
uMsg
,
wParam
,
lParam
,
...
...
include/commctrl.h
View file @
94ebade2
...
...
@@ -28,7 +28,7 @@ extern "C" {
#endif
BOOL
WINAPI
ShowHideMenuCtl
(
HWND
,
UINT_PTR
,
LPINT
);
VOID
WINAPI
GetEffectiveClientRect
(
HWND
,
LPRECT
,
LPINT
);
VOID
WINAPI
GetEffectiveClientRect
(
HWND
,
LPRECT
,
const
INT
*
);
VOID
WINAPI
InitCommonControls
(
VOID
);
typedef
struct
tagINITCOMMONCONTROLSEX
{
...
...
@@ -340,8 +340,8 @@ static const WCHAR STATUSCLASSNAMEW[] = { 'm','s','c','t','l','s','_',
HWND
WINAPI
CreateStatusWindowA
(
LONG
,
LPCSTR
,
HWND
,
UINT
);
HWND
WINAPI
CreateStatusWindowW
(
LONG
,
LPCWSTR
,
HWND
,
UINT
);
#define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
VOID
WINAPI
DrawStatusTextA
(
HDC
,
LPRECT
,
LPCSTR
,
UINT
);
VOID
WINAPI
DrawStatusTextW
(
HDC
,
LPRECT
,
LPCWSTR
,
UINT
);
VOID
WINAPI
DrawStatusTextA
(
HDC
,
LP
C
RECT
,
LPCSTR
,
UINT
);
VOID
WINAPI
DrawStatusTextW
(
HDC
,
LP
C
RECT
,
LPCWSTR
,
UINT
);
#define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
VOID
WINAPI
MenuHelp
(
UINT
,
WPARAM
,
LPARAM
,
HMENU
,
HINSTANCE
,
HWND
,
UINT
*
);
...
...
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