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
867f254b
Commit
867f254b
authored
Dec 29, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove unneeded casts.
parent
05f38321
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
33 deletions
+23
-33
commctrl.c
dlls/comctl32/commctrl.c
+4
-4
datetime.c
dlls/comctl32/datetime.c
+2
-2
header.c
dlls/comctl32/header.c
+2
-4
ipaddress.c
dlls/comctl32/ipaddress.c
+1
-2
listview.c
dlls/comctl32/listview.c
+1
-2
monthcal.c
dlls/comctl32/monthcal.c
+7
-10
pager.c
dlls/comctl32/pager.c
+3
-6
rebar.c
dlls/comctl32/rebar.c
+1
-1
syslink.c
dlls/comctl32/syslink.c
+1
-1
updown.c
dlls/comctl32/updown.c
+1
-1
No files found.
dlls/comctl32/commctrl.c
View file @
867f254b
...
...
@@ -207,7 +207,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
COMCTL32_hModule
=
(
HMODULE
)
hinstDLL
;
COMCTL32_hModule
=
hinstDLL
;
/* add global subclassing atom (used by 'tooltip' and 'updown') */
COMCTL32_wSubclass
=
(
LPWSTR
)(
DWORD_PTR
)
GlobalAddAtomW
(
strCC32SubclassInfo
);
...
...
@@ -885,7 +885,7 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
return
0
;
RtlMoveMemory
(
lpBitmapInfo
,
lpBitmap
,
nSize
);
pColorTable
=
(
RGBQUAD
*
)(((
LPBYTE
)
lpBitmapInfo
)
+
(
UINT
)
lpBitmapInfo
->
biSize
);
pColorTable
=
(
RGBQUAD
*
)(((
LPBYTE
)
lpBitmapInfo
)
+
lpBitmapInfo
->
biSize
);
for
(
iColor
=
0
;
iColor
<
nColorTableSize
;
iColor
++
)
{
for
(
i
=
0
;
i
<
iMaps
;
i
++
)
{
...
...
@@ -907,8 +907,8 @@ CreateMappedBitmap (HINSTANCE hInstance, INT_PTR idBitmap, UINT wFlags,
}
}
}
nWidth
=
(
INT
)
lpBitmapInfo
->
biWidth
;
nHeight
=
(
INT
)
lpBitmapInfo
->
biHeight
;
nWidth
=
lpBitmapInfo
->
biWidth
;
nHeight
=
lpBitmapInfo
->
biHeight
;
hdcScreen
=
GetDC
(
NULL
);
hbm
=
CreateCompatibleBitmap
(
hdcScreen
,
nWidth
,
nHeight
);
if
(
hbm
)
{
...
...
dlls/comctl32/datetime.c
View file @
867f254b
...
...
@@ -1108,7 +1108,7 @@ DATETIME_SendDateTimeChangeNotify (const DATETIME_INFO *infoPtr)
MONTHCAL_CopyTime
(
&
infoPtr
->
date
,
&
dtdtc
.
st
);
return
(
BOOL
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
dtdtc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
dtdtc
);
dtdtc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
dtdtc
);
}
...
...
@@ -1123,7 +1123,7 @@ DATETIME_SendSimpleNotify (const DATETIME_INFO *infoPtr, UINT code)
nmhdr
.
code
=
code
;
return
(
BOOL
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
}
static
LRESULT
...
...
dlls/comctl32/header.c
View file @
867f254b
...
...
@@ -783,7 +783,7 @@ HEADER_SendNotify(HWND hwnd, UINT code, NMHDR *nmhdr)
nmhdr
->
code
=
code
;
return
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmhdr
->
idFrom
,
(
LPARAM
)
nmhdr
);
nmhdr
->
idFrom
,
(
LPARAM
)
nmhdr
);
}
static
BOOL
...
...
@@ -909,9 +909,7 @@ HEADER_PrepareCallbackItems(HWND hwnd, INT iItem, INT reqMask)
dispInfo
.
lParam
=
lpItem
->
lParam
;
TRACE
(
"Sending HDN_GETDISPINFO%c
\n
"
,
infoPtr
->
nNotifyFormat
==
NFR_UNICODE
?
'W'
:
'A'
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
dispInfo
.
hdr
.
idFrom
,
(
LPARAM
)
&
dispInfo
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
dispInfo
.
hdr
.
idFrom
,
(
LPARAM
)
&
dispInfo
);
TRACE
(
"SendMessage returns(mask:0x%x,str:%s,lParam:%p)
\n
"
,
dispInfo
.
mask
,
...
...
dlls/comctl32/ipaddress.c
View file @
867f254b
...
...
@@ -100,8 +100,7 @@ static INT IPADDRESS_IPNotify (const IPADDRESS_INFO *infoPtr, INT field, INT val
nmip
.
iField
=
field
;
nmip
.
iValue
=
value
;
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
(
WPARAM
)
nmip
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmip
);
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
nmip
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmip
);
TRACE
(
"<-- %d
\n
"
,
nmip
.
iValue
);
...
...
dlls/comctl32/listview.c
View file @
867f254b
...
...
@@ -735,8 +735,7 @@ static LRESULT notify_hdr(const LISTVIEW_INFO *infoPtr, INT code, LPNMHDR pnmh)
pnmh
->
hwndFrom
=
infoPtr
->
hwndSelf
;
pnmh
->
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_ID
);
pnmh
->
code
=
code
;
result
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
pnmh
->
idFrom
,
(
LPARAM
)
pnmh
);
result
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
pnmh
->
idFrom
,
(
LPARAM
)
pnmh
);
TRACE
(
" <= %ld
\n
"
,
result
);
...
...
dlls/comctl32/monthcal.c
View file @
867f254b
...
...
@@ -1305,8 +1305,7 @@ static void MONTHCAL_GoToNextMonth(MONTHCAL_INFO *infoPtr)
nmds
.
cDayState
=
infoPtr
->
monthRange
;
nmds
.
prgDayState
=
Alloc
(
infoPtr
->
monthRange
*
sizeof
(
MONTHDAYSTATE
));
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmds
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmds
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmds
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmds
);
for
(
i
=
0
;
i
<
infoPtr
->
monthRange
;
i
++
)
infoPtr
->
monthdayState
[
i
]
=
nmds
.
prgDayState
[
i
];
}
...
...
@@ -1336,8 +1335,7 @@ static void MONTHCAL_GoToPrevMonth(MONTHCAL_INFO *infoPtr)
nmds
.
prgDayState
=
Alloc
(
infoPtr
->
monthRange
*
sizeof
(
MONTHDAYSTATE
));
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmds
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmds
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmds
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmds
);
for
(
i
=
0
;
i
<
infoPtr
->
monthRange
;
i
++
)
infoPtr
->
monthdayState
[
i
]
=
nmds
.
prgDayState
[
i
];
}
...
...
@@ -1490,10 +1488,10 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
nmsc
.
nmhdr
.
code
=
MCN_SELCHANGE
;
MONTHCAL_CopyTime
(
&
infoPtr
->
minSel
,
&
nmsc
.
stSelStart
);
MONTHCAL_CopyTime
(
&
infoPtr
->
maxSel
,
&
nmsc
.
stSelEnd
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
nmsc
.
nmhdr
.
code
=
MCN_SELECT
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
return
0
;
}
if
(
hit
==
MCHT_CALENDARDATE
)
{
...
...
@@ -1511,8 +1509,7 @@ MONTHCAL_LButtonDown(MONTHCAL_INFO *infoPtr, LPARAM lParam)
MONTHCAL_CopyTime
(
&
infoPtr
->
minSel
,
&
nmsc
.
stSelStart
);
MONTHCAL_CopyTime
(
&
infoPtr
->
maxSel
,
&
nmsc
.
stSelEnd
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmsc
.
nmhdr
.
idFrom
,(
LPARAM
)
&
nmsc
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
/* redraw both old and new days if the selected day changed */
...
...
@@ -1577,7 +1574,7 @@ MONTHCAL_LButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
nmhdr
.
code
=
NM_RELEASEDCAPTURE
;
TRACE
(
"Sent notification from %p to %p
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
hwndNotify
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
/* redraw if necessary */
if
(
redraw
)
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
FALSE
);
...
...
@@ -1589,7 +1586,7 @@ MONTHCAL_LButtonUp(MONTHCAL_INFO *infoPtr, LPARAM lParam)
MONTHCAL_CopyTime
(
&
infoPtr
->
minSel
,
&
nmsc
.
stSelStart
);
MONTHCAL_CopyTime
(
&
infoPtr
->
maxSel
,
&
nmsc
.
stSelEnd
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmsc
.
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmsc
);
}
return
0
;
...
...
dlls/comctl32/pager.c
View file @
867f254b
...
...
@@ -352,8 +352,7 @@ PAGER_CalcSize (const PAGER_INFO *infoPtr, INT* size, BOOL getWidth)
nmpgcs
.
dwFlag
=
getWidth
?
PGF_CALCWIDTH
:
PGF_CALCHEIGHT
;
nmpgcs
.
iWidth
=
getWidth
?
*
size
:
0
;
nmpgcs
.
iHeight
=
getWidth
?
0
:
*
size
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmpgcs
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmpgcs
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmpgcs
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmpgcs
);
*
size
=
getWidth
?
nmpgcs
.
iWidth
:
nmpgcs
.
iHeight
;
...
...
@@ -763,8 +762,7 @@ PAGER_Scroll(PAGER_INFO* infoPtr, INT dir)
}
nmpgScroll
.
iScroll
-=
2
*
infoPtr
->
nButtonSize
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmpgScroll
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmpgScroll
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmpgScroll
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmpgScroll
);
TRACE
(
"[%p] PGN_SCROLL returns iScroll=%d
\n
"
,
infoPtr
->
hwndSelf
,
nmpgScroll
.
iScroll
);
...
...
@@ -1076,8 +1074,7 @@ PAGER_MouseMove (PAGER_INFO* infoPtr, INT keys, INT x, INT y)
nmhdr
.
hwndFrom
=
infoPtr
->
hwndSelf
;
nmhdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
GWLP_ID
);
nmhdr
.
code
=
NM_RELEASEDCAPTURE
;
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
nmhdr
.
idFrom
,
(
LPARAM
)
&
nmhdr
);
}
if
(
IsWindow
(
infoPtr
->
hwndSelf
))
KillTimer
(
infoPtr
->
hwndSelf
,
TIMERID1
);
...
...
dlls/comctl32/rebar.c
View file @
867f254b
...
...
@@ -511,7 +511,7 @@ REBAR_Notify (NMHDR *nmhdr, const REBAR_INFO *infoPtr, UINT code)
TRACE
(
"window %p, code=%08x, via %s
\n
"
,
parent
,
code
,
(
infoPtr
->
bUnicode
)
?
"Unicode"
:
"ANSI"
);
return
SendMessageW
(
parent
,
WM_NOTIFY
,
(
WPARAM
)
nmhdr
->
idFrom
,
(
LPARAM
)
nmhdr
);
return
SendMessageW
(
parent
,
WM_NOTIFY
,
nmhdr
->
idFrom
,
(
LPARAM
)
nmhdr
);
}
static
INT
...
...
dlls/comctl32/syslink.c
View file @
867f254b
...
...
@@ -1314,7 +1314,7 @@ static LRESULT SYSLINK_SendParentNotify (const SYSLINK_INFO *infoPtr, UINT code,
nml
.
item
.
szUrl
[
0
]
=
0
;
}
return
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
(
WPARAM
)
nml
.
hdr
.
idFrom
,
(
LPARAM
)
&
nml
);
return
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
nml
.
hdr
.
idFrom
,
(
LPARAM
)
&
nml
);
}
/***********************************************************************
...
...
dlls/comctl32/updown.c
View file @
867f254b
...
...
@@ -627,7 +627,7 @@ static void UPDOWN_DoAction (UPDOWN_INFO *infoPtr, int delta, int action)
ni
.
hdr
.
hwndFrom
=
infoPtr
->
Self
;
ni
.
hdr
.
idFrom
=
GetWindowLongPtrW
(
infoPtr
->
Self
,
GWLP_ID
);
ni
.
hdr
.
code
=
UDN_DELTAPOS
;
if
(
!
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
(
WPARAM
)
ni
.
hdr
.
idFrom
,
(
LPARAM
)
&
ni
))
{
if
(
!
SendMessageW
(
infoPtr
->
Notify
,
WM_NOTIFY
,
ni
.
hdr
.
idFrom
,
(
LPARAM
)
&
ni
))
{
/* Parent said: OK to adjust */
/* Now adjust value with (maybe new) delta */
...
...
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