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
1c16d833
Commit
1c16d833
authored
Oct 13, 2006
by
Michael Ploujnikov
Committed by
Alexandre Julliard
Oct 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Win64 printf format warning fixes.
parent
177350d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
200 additions
and
200 deletions
+200
-200
Makefile.in
dlls/comctl32/Makefile.in
+1
-1
animate.c
dlls/comctl32/animate.c
+32
-32
comboex.c
dlls/comctl32/comboex.c
+21
-21
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+10
-10
commctrl.c
dlls/comctl32/commctrl.c
+4
-4
datetime.c
dlls/comctl32/datetime.c
+3
-3
dpa.c
dlls/comctl32/dpa.c
+3
-3
draglist.c
dlls/comctl32/draglist.c
+1
-1
hotkey.c
dlls/comctl32/hotkey.c
+2
-2
imagelist.c
dlls/comctl32/imagelist.c
+3
-3
listview.c
dlls/comctl32/listview.c
+15
-15
monthcal.c
dlls/comctl32/monthcal.c
+1
-1
pager.c
dlls/comctl32/pager.c
+6
-6
propsheet.c
dlls/comctl32/propsheet.c
+15
-15
rebar.c
dlls/comctl32/rebar.c
+0
-0
smoothscroll.c
dlls/comctl32/smoothscroll.c
+1
-1
status.c
dlls/comctl32/status.c
+4
-4
tab.c
dlls/comctl32/tab.c
+27
-27
theming.c
dlls/comctl32/theming.c
+1
-1
toolbar.c
dlls/comctl32/toolbar.c
+29
-29
tooltips.c
dlls/comctl32/tooltips.c
+6
-6
trackbar.c
dlls/comctl32/trackbar.c
+4
-4
treeview.c
dlls/comctl32/treeview.c
+11
-11
No files found.
dlls/comctl32/Makefile.in
View file @
1c16d833
EXTRADEFS
=
-D_COMCTL32_
-DWINE_NO_LONG_AS_INT
EXTRADEFS
=
-D_COMCTL32_
TOPSRCDIR
=
@top_srcdir@
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
...
...
dlls/comctl32/animate.c
View file @
1c16d833
...
@@ -498,16 +498,16 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
...
@@ -498,16 +498,16 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
mmioRead
(
infoPtr
->
hMMio
,
(
LPSTR
)
&
infoPtr
->
mah
,
sizeof
(
infoPtr
->
mah
));
mmioRead
(
infoPtr
->
hMMio
,
(
LPSTR
)
&
infoPtr
->
mah
,
sizeof
(
infoPtr
->
mah
));
TRACE
(
"mah.dwMicroSecPerFrame=%
l
d
\n
"
,
infoPtr
->
mah
.
dwMicroSecPerFrame
);
TRACE
(
"mah.dwMicroSecPerFrame=%d
\n
"
,
infoPtr
->
mah
.
dwMicroSecPerFrame
);
TRACE
(
"mah.dwMaxBytesPerSec=%
ld
\n
"
,
infoPtr
->
mah
.
dwMaxBytesPerSec
);
TRACE
(
"mah.dwMaxBytesPerSec=%
d
\n
"
,
infoPtr
->
mah
.
dwMaxBytesPerSec
);
TRACE
(
"mah.dwPaddingGranularity=%
l
d
\n
"
,
infoPtr
->
mah
.
dwPaddingGranularity
);
TRACE
(
"mah.dwPaddingGranularity=%d
\n
"
,
infoPtr
->
mah
.
dwPaddingGranularity
);
TRACE
(
"mah.dwFlags=%
ld
\n
"
,
infoPtr
->
mah
.
dwFlags
);
TRACE
(
"mah.dwFlags=%
d
\n
"
,
infoPtr
->
mah
.
dwFlags
);
TRACE
(
"mah.dwTotalFrames=%
ld
\n
"
,
infoPtr
->
mah
.
dwTotalFrames
);
TRACE
(
"mah.dwTotalFrames=%
d
\n
"
,
infoPtr
->
mah
.
dwTotalFrames
);
TRACE
(
"mah.dwInitialFrames=%
ld
\n
"
,
infoPtr
->
mah
.
dwInitialFrames
);
TRACE
(
"mah.dwInitialFrames=%
d
\n
"
,
infoPtr
->
mah
.
dwInitialFrames
);
TRACE
(
"mah.dwStreams=%
ld
\n
"
,
infoPtr
->
mah
.
dwStreams
);
TRACE
(
"mah.dwStreams=%
d
\n
"
,
infoPtr
->
mah
.
dwStreams
);
TRACE
(
"mah.dwSuggestedBufferSize=%
l
d
\n
"
,
infoPtr
->
mah
.
dwSuggestedBufferSize
);
TRACE
(
"mah.dwSuggestedBufferSize=%d
\n
"
,
infoPtr
->
mah
.
dwSuggestedBufferSize
);
TRACE
(
"mah.dwWidth=%
ld
\n
"
,
infoPtr
->
mah
.
dwWidth
);
TRACE
(
"mah.dwWidth=%
d
\n
"
,
infoPtr
->
mah
.
dwWidth
);
TRACE
(
"mah.dwHeight=%
ld
\n
"
,
infoPtr
->
mah
.
dwHeight
);
TRACE
(
"mah.dwHeight=%
d
\n
"
,
infoPtr
->
mah
.
dwHeight
);
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
...
@@ -533,17 +533,17 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
...
@@ -533,17 +533,17 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
HIBYTE
(
LOWORD
(
infoPtr
->
ash
.
fccHandler
)),
HIBYTE
(
LOWORD
(
infoPtr
->
ash
.
fccHandler
)),
LOBYTE
(
HIWORD
(
infoPtr
->
ash
.
fccHandler
)),
LOBYTE
(
HIWORD
(
infoPtr
->
ash
.
fccHandler
)),
HIBYTE
(
HIWORD
(
infoPtr
->
ash
.
fccHandler
)));
HIBYTE
(
HIWORD
(
infoPtr
->
ash
.
fccHandler
)));
TRACE
(
"ash.dwFlags=%
l
d
\n
"
,
infoPtr
->
ash
.
dwFlags
);
TRACE
(
"ash.dwFlags=%d
\n
"
,
infoPtr
->
ash
.
dwFlags
);
TRACE
(
"ash.wPriority=%d
\n
"
,
infoPtr
->
ash
.
wPriority
);
TRACE
(
"ash.wPriority=%d
\n
"
,
infoPtr
->
ash
.
wPriority
);
TRACE
(
"ash.wLanguage=%d
\n
"
,
infoPtr
->
ash
.
wLanguage
);
TRACE
(
"ash.wLanguage=%d
\n
"
,
infoPtr
->
ash
.
wLanguage
);
TRACE
(
"ash.dwInitialFrames=%
l
d
\n
"
,
infoPtr
->
ash
.
dwInitialFrames
);
TRACE
(
"ash.dwInitialFrames=%d
\n
"
,
infoPtr
->
ash
.
dwInitialFrames
);
TRACE
(
"ash.dwScale=%
l
d
\n
"
,
infoPtr
->
ash
.
dwScale
);
TRACE
(
"ash.dwScale=%d
\n
"
,
infoPtr
->
ash
.
dwScale
);
TRACE
(
"ash.dwRate=%
l
d
\n
"
,
infoPtr
->
ash
.
dwRate
);
TRACE
(
"ash.dwRate=%d
\n
"
,
infoPtr
->
ash
.
dwRate
);
TRACE
(
"ash.dwStart=%
l
d
\n
"
,
infoPtr
->
ash
.
dwStart
);
TRACE
(
"ash.dwStart=%d
\n
"
,
infoPtr
->
ash
.
dwStart
);
TRACE
(
"ash.dwLength=%
ld
\n
"
,
infoPtr
->
ash
.
dwLength
);
TRACE
(
"ash.dwLength=%
d
\n
"
,
infoPtr
->
ash
.
dwLength
);
TRACE
(
"ash.dwSuggestedBufferSize=%
l
d
\n
"
,
infoPtr
->
ash
.
dwSuggestedBufferSize
);
TRACE
(
"ash.dwSuggestedBufferSize=%d
\n
"
,
infoPtr
->
ash
.
dwSuggestedBufferSize
);
TRACE
(
"ash.dwQuality=%
l
d
\n
"
,
infoPtr
->
ash
.
dwQuality
);
TRACE
(
"ash.dwQuality=%d
\n
"
,
infoPtr
->
ash
.
dwQuality
);
TRACE
(
"ash.dwSampleSize=%
l
d
\n
"
,
infoPtr
->
ash
.
dwSampleSize
);
TRACE
(
"ash.dwSampleSize=%d
\n
"
,
infoPtr
->
ash
.
dwSampleSize
);
TRACE
(
"ash.rcFrame=(%d,%d,%d,%d)
\n
"
,
infoPtr
->
ash
.
rcFrame
.
top
,
infoPtr
->
ash
.
rcFrame
.
left
,
TRACE
(
"ash.rcFrame=(%d,%d,%d,%d)
\n
"
,
infoPtr
->
ash
.
rcFrame
.
top
,
infoPtr
->
ash
.
rcFrame
.
left
,
infoPtr
->
ash
.
rcFrame
.
bottom
,
infoPtr
->
ash
.
rcFrame
.
right
);
infoPtr
->
ash
.
rcFrame
.
bottom
,
infoPtr
->
ash
.
rcFrame
.
right
);
...
@@ -563,17 +563,17 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
...
@@ -563,17 +563,17 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
mmioRead
(
infoPtr
->
hMMio
,
(
LPSTR
)
infoPtr
->
inbih
,
mmckInfo
.
cksize
);
mmioRead
(
infoPtr
->
hMMio
,
(
LPSTR
)
infoPtr
->
inbih
,
mmckInfo
.
cksize
);
TRACE
(
"bih.biSize=%
l
d
\n
"
,
infoPtr
->
inbih
->
biSize
);
TRACE
(
"bih.biSize=%d
\n
"
,
infoPtr
->
inbih
->
biSize
);
TRACE
(
"bih.biWidth=%
l
d
\n
"
,
infoPtr
->
inbih
->
biWidth
);
TRACE
(
"bih.biWidth=%d
\n
"
,
infoPtr
->
inbih
->
biWidth
);
TRACE
(
"bih.biHeight=%
ld
\n
"
,
infoPtr
->
inbih
->
biHeight
);
TRACE
(
"bih.biHeight=%
d
\n
"
,
infoPtr
->
inbih
->
biHeight
);
TRACE
(
"bih.biPlanes=%d
\n
"
,
infoPtr
->
inbih
->
biPlanes
);
TRACE
(
"bih.biPlanes=%d
\n
"
,
infoPtr
->
inbih
->
biPlanes
);
TRACE
(
"bih.biBitCount=%d
\n
"
,
infoPtr
->
inbih
->
biBitCount
);
TRACE
(
"bih.biBitCount=%d
\n
"
,
infoPtr
->
inbih
->
biBitCount
);
TRACE
(
"bih.biCompression=%
l
d
\n
"
,
infoPtr
->
inbih
->
biCompression
);
TRACE
(
"bih.biCompression=%d
\n
"
,
infoPtr
->
inbih
->
biCompression
);
TRACE
(
"bih.biSizeImage=%
l
d
\n
"
,
infoPtr
->
inbih
->
biSizeImage
);
TRACE
(
"bih.biSizeImage=%d
\n
"
,
infoPtr
->
inbih
->
biSizeImage
);
TRACE
(
"bih.biXPelsPerMeter=%
l
d
\n
"
,
infoPtr
->
inbih
->
biXPelsPerMeter
);
TRACE
(
"bih.biXPelsPerMeter=%d
\n
"
,
infoPtr
->
inbih
->
biXPelsPerMeter
);
TRACE
(
"bih.biYPelsPerMeter=%
l
d
\n
"
,
infoPtr
->
inbih
->
biYPelsPerMeter
);
TRACE
(
"bih.biYPelsPerMeter=%d
\n
"
,
infoPtr
->
inbih
->
biYPelsPerMeter
);
TRACE
(
"bih.biClrUsed=%
l
d
\n
"
,
infoPtr
->
inbih
->
biClrUsed
);
TRACE
(
"bih.biClrUsed=%d
\n
"
,
infoPtr
->
inbih
->
biClrUsed
);
TRACE
(
"bih.biClrImportant=%
l
d
\n
"
,
infoPtr
->
inbih
->
biClrImportant
);
TRACE
(
"bih.biClrImportant=%d
\n
"
,
infoPtr
->
inbih
->
biClrImportant
);
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
...
@@ -616,11 +616,11 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
...
@@ -616,11 +616,11 @@ static BOOL ANIMATE_GetAviInfo(ANIMATE_INFO *infoPtr)
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
mmioAscend
(
infoPtr
->
hMMio
,
&
mmckInfo
,
0
);
}
}
if
(
numFrame
!=
infoPtr
->
mah
.
dwTotalFrames
)
{
if
(
numFrame
!=
infoPtr
->
mah
.
dwTotalFrames
)
{
WARN
(
"Found %
ld frames (/%l
d)
\n
"
,
numFrame
,
infoPtr
->
mah
.
dwTotalFrames
);
WARN
(
"Found %
d frames (/%
d)
\n
"
,
numFrame
,
infoPtr
->
mah
.
dwTotalFrames
);
return
FALSE
;
return
FALSE
;
}
}
if
(
insize
>
infoPtr
->
ash
.
dwSuggestedBufferSize
)
{
if
(
insize
>
infoPtr
->
ash
.
dwSuggestedBufferSize
)
{
WARN
(
"insize=%
ld suggestedSize=%l
d
\n
"
,
insize
,
infoPtr
->
ash
.
dwSuggestedBufferSize
);
WARN
(
"insize=%
d suggestedSize=%
d
\n
"
,
insize
,
infoPtr
->
ash
.
dwSuggestedBufferSize
);
infoPtr
->
ash
.
dwSuggestedBufferSize
=
insize
;
infoPtr
->
ash
.
dwSuggestedBufferSize
=
insize
;
}
}
...
@@ -801,7 +801,7 @@ static BOOL ANIMATE_Create(HWND hWnd, LPCREATESTRUCTW lpcs)
...
@@ -801,7 +801,7 @@ static BOOL ANIMATE_Create(HWND hWnd, LPCREATESTRUCTW lpcs)
infoPtr
->
hbmPrevFrame
=
0
;
infoPtr
->
hbmPrevFrame
=
0
;
infoPtr
->
dwStyle
=
lpcs
->
style
;
infoPtr
->
dwStyle
=
lpcs
->
style
;
TRACE
(
"Animate style=0x%08
l
x, parent=%p
\n
"
,
infoPtr
->
dwStyle
,
infoPtr
->
hwndNotify
);
TRACE
(
"Animate style=0x%08x, parent=%p
\n
"
,
infoPtr
->
dwStyle
,
infoPtr
->
hwndNotify
);
InitializeCriticalSection
(
&
infoPtr
->
cs
);
InitializeCriticalSection
(
&
infoPtr
->
cs
);
...
@@ -844,7 +844,7 @@ static BOOL ANIMATE_EraseBackground(ANIMATE_INFO *infoPtr, HDC hdc)
...
@@ -844,7 +844,7 @@ static BOOL ANIMATE_EraseBackground(ANIMATE_INFO *infoPtr, HDC hdc)
static
LRESULT
ANIMATE_StyleChanged
(
ANIMATE_INFO
*
infoPtr
,
WPARAM
wStyleType
,
LPSTYLESTRUCT
lpss
)
static
LRESULT
ANIMATE_StyleChanged
(
ANIMATE_INFO
*
infoPtr
,
WPARAM
wStyleType
,
LPSTYLESTRUCT
lpss
)
{
{
TRACE
(
"(styletype=%x, styleOld=0x%08
lx, styleNew=0x%08l
x)
\n
"
,
TRACE
(
"(styletype=%x, styleOld=0x%08
x, styleNew=0x%08
x)
\n
"
,
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
...
...
dlls/comctl32/comboex.c
View file @
1c16d833
...
@@ -352,7 +352,7 @@ static void COMBOEX_GetComboFontSize (COMBOEX_INFO *infoPtr, SIZE *size)
...
@@ -352,7 +352,7 @@ static void COMBOEX_GetComboFontSize (COMBOEX_INFO *infoPtr, SIZE *size)
GetTextExtentPointW
(
mydc
,
strA
,
1
,
size
);
GetTextExtentPointW
(
mydc
,
strA
,
1
,
size
);
SelectObject
(
mydc
,
ofont
);
SelectObject
(
mydc
,
ofont
);
ReleaseDC
(
0
,
mydc
);
ReleaseDC
(
0
,
mydc
);
TRACE
(
"selected font hwnd=%p, height=%
l
d
\n
"
,
nfont
,
size
->
cy
);
TRACE
(
"selected font hwnd=%p, height=%d
\n
"
,
nfont
,
size
->
cy
);
}
}
...
@@ -406,13 +406,13 @@ static void COMBOEX_AdjustEditPos (COMBOEX_INFO *infoPtr)
...
@@ -406,13 +406,13 @@ static void COMBOEX_AdjustEditPos (COMBOEX_INFO *infoPtr)
/* reposition the Edit control based on whether icon exists */
/* reposition the Edit control based on whether icon exists */
COMBOEX_GetComboFontSize
(
infoPtr
,
&
mysize
);
COMBOEX_GetComboFontSize
(
infoPtr
,
&
mysize
);
TRACE
(
"Combo font x=%
ld, y=%l
d
\n
"
,
mysize
.
cx
,
mysize
.
cy
);
TRACE
(
"Combo font x=%
d, y=%
d
\n
"
,
mysize
.
cx
,
mysize
.
cy
);
x
=
xioff
+
CBE_STARTOFFSET
+
1
;
x
=
xioff
+
CBE_STARTOFFSET
+
1
;
w
=
rect
.
right
-
rect
.
left
-
x
-
GetSystemMetrics
(
SM_CXVSCROLL
)
-
1
;
w
=
rect
.
right
-
rect
.
left
-
x
-
GetSystemMetrics
(
SM_CXVSCROLL
)
-
1
;
h
=
mysize
.
cy
+
1
;
h
=
mysize
.
cy
+
1
;
y
=
rect
.
bottom
-
h
-
1
;
y
=
rect
.
bottom
-
h
-
1
;
TRACE
(
"Combo client (%
ld,%ld)-(%ld,%l
d), setting Edit to (%d,%d)-(%d,%d)
\n
"
,
TRACE
(
"Combo client (%
d,%d)-(%d,%
d), setting Edit to (%d,%d)-(%d,%d)
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
x
,
y
,
x
+
w
,
y
+
h
);
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
x
,
y
,
x
+
w
,
y
+
h
);
SetWindowPos
(
infoPtr
->
hwndEdit
,
HWND_TOP
,
x
,
y
,
w
,
h
,
SetWindowPos
(
infoPtr
->
hwndEdit
,
HWND_TOP
,
x
,
y
,
w
,
h
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
...
@@ -429,7 +429,7 @@ static void COMBOEX_ReSize (COMBOEX_INFO *infoPtr)
...
@@ -429,7 +429,7 @@ static void COMBOEX_ReSize (COMBOEX_INFO *infoPtr)
cy
=
mysize
.
cy
+
CBE_EXTRA
;
cy
=
mysize
.
cy
+
CBE_EXTRA
;
if
(
infoPtr
->
himl
&&
ImageList_GetImageInfo
(
infoPtr
->
himl
,
0
,
&
iinfo
))
{
if
(
infoPtr
->
himl
&&
ImageList_GetImageInfo
(
infoPtr
->
himl
,
0
,
&
iinfo
))
{
cy
=
max
(
iinfo
.
rcImage
.
bottom
-
iinfo
.
rcImage
.
top
,
cy
);
cy
=
max
(
iinfo
.
rcImage
.
bottom
-
iinfo
.
rcImage
.
top
,
cy
);
TRACE
(
"upgraded height due to image: height=%
l
d
\n
"
,
cy
);
TRACE
(
"upgraded height due to image: height=%d
\n
"
,
cy
);
}
}
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_SETITEMHEIGHT
,
(
WPARAM
)
-
1
,
(
LPARAM
)
cy
);
SendMessageW
(
infoPtr
->
hwndSelf
,
CB_SETITEMHEIGHT
,
(
WPARAM
)
-
1
,
(
LPARAM
)
cy
);
if
(
infoPtr
->
hwndCombo
)
{
if
(
infoPtr
->
hwndCombo
)
{
...
@@ -712,7 +712,7 @@ COMBOEX_SetExtendedStyle (COMBOEX_INFO *infoPtr, DWORD mask, DWORD style)
...
@@ -712,7 +712,7 @@ COMBOEX_SetExtendedStyle (COMBOEX_INFO *infoPtr, DWORD mask, DWORD style)
{
{
DWORD
dwTemp
;
DWORD
dwTemp
;
TRACE
(
"(mask=x%08
lx, style=0x%08l
x)
\n
"
,
mask
,
style
);
TRACE
(
"(mask=x%08
x, style=0x%08
x)
\n
"
,
mask
,
style
);
dwTemp
=
infoPtr
->
dwExtStyle
;
dwTemp
=
infoPtr
->
dwExtStyle
;
...
@@ -730,7 +730,7 @@ COMBOEX_SetExtendedStyle (COMBOEX_INFO *infoPtr, DWORD mask, DWORD style)
...
@@ -730,7 +730,7 @@ COMBOEX_SetExtendedStyle (COMBOEX_INFO *infoPtr, DWORD mask, DWORD style)
mask
=
CBES_EX_NOEDITIMAGE
|
CBES_EX_NOEDITIMAGEINDENT
;
mask
=
CBES_EX_NOEDITIMAGE
|
CBES_EX_NOEDITIMAGEINDENT
;
if
((
infoPtr
->
dwExtStyle
&
mask
)
!=
(
dwTemp
&
mask
))
{
if
((
infoPtr
->
dwExtStyle
&
mask
)
!=
(
dwTemp
&
mask
))
{
/* if state of EX_NOEDITIMAGE changes, invalidate all */
/* if state of EX_NOEDITIMAGE changes, invalidate all */
TRACE
(
"EX_NOEDITIMAGE state changed to %
l
d
\n
"
,
TRACE
(
"EX_NOEDITIMAGE state changed to %d
\n
"
,
infoPtr
->
dwExtStyle
&
CBES_EX_NOEDITIMAGE
);
infoPtr
->
dwExtStyle
&
CBES_EX_NOEDITIMAGE
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
COMBOEX_AdjustEditPos
(
infoPtr
);
COMBOEX_AdjustEditPos
(
infoPtr
);
...
@@ -942,10 +942,10 @@ static INT COMBOEX_SetItemHeight (COMBOEX_INFO *infoPtr, INT index, UINT height)
...
@@ -942,10 +942,10 @@ static INT COMBOEX_SetItemHeight (COMBOEX_INFO *infoPtr, INT index, UINT height)
height
=
cb_wrect
.
bottom
-
cb_wrect
.
top
height
=
cb_wrect
.
bottom
-
cb_wrect
.
top
+
cbx_wrect
.
bottom
-
cbx_wrect
.
top
+
cbx_wrect
.
bottom
-
cbx_wrect
.
top
-
(
cbx_crect
.
bottom
-
cbx_crect
.
top
);
-
(
cbx_crect
.
bottom
-
cbx_crect
.
top
);
TRACE
(
"EX window=(%
ld,%ld)-(%ld,%ld), client=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"EX window=(%
d,%d)-(%d,%d), client=(%d,%d)-(%d,%
d)
\n
"
,
cbx_wrect
.
left
,
cbx_wrect
.
top
,
cbx_wrect
.
right
,
cbx_wrect
.
bottom
,
cbx_wrect
.
left
,
cbx_wrect
.
top
,
cbx_wrect
.
right
,
cbx_wrect
.
bottom
,
cbx_crect
.
left
,
cbx_crect
.
top
,
cbx_crect
.
right
,
cbx_crect
.
bottom
);
cbx_crect
.
left
,
cbx_crect
.
top
,
cbx_crect
.
right
,
cbx_crect
.
bottom
);
TRACE
(
"CB window=(%
ld,%ld)-(%ld,%ld), EX setting=(0,0)-(%l
d,%d)
\n
"
,
TRACE
(
"CB window=(%
d,%d)-(%d,%d), EX setting=(0,0)-(%
d,%d)
\n
"
,
cb_wrect
.
left
,
cb_wrect
.
top
,
cb_wrect
.
right
,
cb_wrect
.
bottom
,
cb_wrect
.
left
,
cb_wrect
.
top
,
cb_wrect
.
right
,
cb_wrect
.
bottom
,
cbx_wrect
.
right
-
cbx_wrect
.
left
,
height
);
cbx_wrect
.
right
-
cbx_wrect
.
left
,
height
);
SetWindowPos
(
infoPtr
->
hwndSelf
,
HWND_TOP
,
0
,
0
,
SetWindowPos
(
infoPtr
->
hwndSelf
,
HWND_TOP
,
0
,
0
,
...
@@ -994,7 +994,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
...
@@ -994,7 +994,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
/* create combo box */
/* create combo box */
GetWindowRect
(
hwnd
,
&
wnrc1
);
GetWindowRect
(
hwnd
,
&
wnrc1
);
GetClientRect
(
hwnd
,
&
clrc1
);
GetClientRect
(
hwnd
,
&
clrc1
);
TRACE
(
"EX window=(%
ld,%ld)-(%ld,%ld) client=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"EX window=(%
d,%d)-(%d,%d) client=(%d,%d)-(%d,%
d)
\n
"
,
wnrc1
.
left
,
wnrc1
.
top
,
wnrc1
.
right
,
wnrc1
.
bottom
,
wnrc1
.
left
,
wnrc1
.
top
,
wnrc1
.
right
,
wnrc1
.
bottom
,
clrc1
.
left
,
clrc1
.
top
,
clrc1
.
right
,
clrc1
.
bottom
);
clrc1
.
left
,
clrc1
.
top
,
clrc1
.
right
,
clrc1
.
bottom
);
...
@@ -1085,7 +1085,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
...
@@ -1085,7 +1085,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
GetWindowRect
(
hwnd
,
&
wnrc1
);
GetWindowRect
(
hwnd
,
&
wnrc1
);
GetClientRect
(
hwnd
,
&
clrc1
);
GetClientRect
(
hwnd
,
&
clrc1
);
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
cmbwrc
);
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
cmbwrc
);
TRACE
(
"EX window=(%
ld,%ld)-(%ld,%ld) client=(%ld,%ld)-(%ld,%ld) CB wnd=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"EX window=(%
d,%d)-(%d,%d) client=(%d,%d)-(%d,%d) CB wnd=(%d,%d)-(%d,%
d)
\n
"
,
wnrc1
.
left
,
wnrc1
.
top
,
wnrc1
.
right
,
wnrc1
.
bottom
,
wnrc1
.
left
,
wnrc1
.
top
,
wnrc1
.
right
,
wnrc1
.
bottom
,
clrc1
.
left
,
clrc1
.
top
,
clrc1
.
right
,
clrc1
.
bottom
,
clrc1
.
left
,
clrc1
.
top
,
clrc1
.
right
,
clrc1
.
bottom
,
cmbwrc
.
left
,
cmbwrc
.
top
,
cmbwrc
.
right
,
cmbwrc
.
bottom
);
cmbwrc
.
left
,
cmbwrc
.
top
,
cmbwrc
.
right
,
cmbwrc
.
bottom
);
...
@@ -1094,7 +1094,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
...
@@ -1094,7 +1094,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
cmbwrc
);
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
cmbwrc
);
TRACE
(
"CB window=(%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"CB window=(%
d,%d)-(%d,%
d)
\n
"
,
cmbwrc
.
left
,
cmbwrc
.
top
,
cmbwrc
.
right
,
cmbwrc
.
bottom
);
cmbwrc
.
left
,
cmbwrc
.
top
,
cmbwrc
.
right
,
cmbwrc
.
bottom
);
SetWindowPos
(
hwnd
,
HWND_TOP
,
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
cmbwrc
.
right
-
cmbwrc
.
left
,
cmbwrc
.
bottom
-
cmbwrc
.
top
,
0
,
0
,
cmbwrc
.
right
-
cmbwrc
.
left
,
cmbwrc
.
bottom
-
cmbwrc
.
top
,
...
@@ -1343,7 +1343,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
...
@@ -1343,7 +1343,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
dis
->
CtlType
,
dis
->
CtlID
);
dis
->
CtlType
,
dis
->
CtlID
);
TRACE
(
"itemID=0x%08x itemAction=0x%08x itemState=0x%08x
\n
"
,
TRACE
(
"itemID=0x%08x itemAction=0x%08x itemState=0x%08x
\n
"
,
dis
->
itemID
,
dis
->
itemAction
,
dis
->
itemState
);
dis
->
itemID
,
dis
->
itemAction
,
dis
->
itemState
);
TRACE
(
"hWnd=%p hDC=%p (%
ld,%ld)-(%ld,%l
d) itemData=0x%08lx
\n
"
,
TRACE
(
"hWnd=%p hDC=%p (%
d,%d)-(%d,%
d) itemData=0x%08lx
\n
"
,
dis
->
hwndItem
,
dis
->
hDC
,
dis
->
rcItem
.
left
,
dis
->
hwndItem
,
dis
->
hDC
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
,
dis
->
itemData
);
dis
->
itemData
);
...
@@ -1363,7 +1363,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
...
@@ -1363,7 +1363,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
if
(
(
(
dis
->
itemAction
&
ODA_FOCUS
)
&&
(
dis
->
itemState
&
ODS_SELECTED
))
||
if
(
(
(
dis
->
itemAction
&
ODA_FOCUS
)
&&
(
dis
->
itemState
&
ODS_SELECTED
))
||
(
(
dis
->
itemAction
&
(
ODA_SELECT
|
ODA_DRAWENTIRE
))
&&
(
dis
->
itemState
&
ODS_FOCUS
)
)
)
{
(
(
dis
->
itemAction
&
(
ODA_SELECT
|
ODA_DRAWENTIRE
))
&&
(
dis
->
itemState
&
ODS_FOCUS
)
)
)
{
TRACE
(
"drawing item -1 special focus, rect=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"drawing item -1 special focus, rect=(%d,%d)-(%d,%
d)
\n
"
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
);
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
);
}
}
...
@@ -1379,14 +1379,14 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
...
@@ -1379,14 +1379,14 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
edrc
.
left
=
edrc
.
top
=
edrc
.
right
=
edrc
.
bottom
=-
1
;
edrc
.
left
=
edrc
.
top
=
edrc
.
right
=
edrc
.
bottom
=-
1
;
if
(
infoPtr
->
hwndEdit
)
if
(
infoPtr
->
hwndEdit
)
GetWindowRect
(
infoPtr
->
hwndEdit
,
&
edrc
);
GetWindowRect
(
infoPtr
->
hwndEdit
,
&
edrc
);
TRACE
(
"window rects ex=(%
ld,%ld)-(%ld,%ld), cb=(%ld,%ld)-(%ld,%ld), ed=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"window rects ex=(%
d,%d)-(%d,%d), cb=(%d,%d)-(%d,%d), ed=(%d,%d)-(%d,%
d)
\n
"
,
exrc
.
left
,
exrc
.
top
,
exrc
.
right
,
exrc
.
bottom
,
exrc
.
left
,
exrc
.
top
,
exrc
.
right
,
exrc
.
bottom
,
cbrc
.
left
,
cbrc
.
top
,
cbrc
.
right
,
cbrc
.
bottom
,
cbrc
.
left
,
cbrc
.
top
,
cbrc
.
right
,
cbrc
.
bottom
,
edrc
.
left
,
edrc
.
top
,
edrc
.
right
,
edrc
.
bottom
);
edrc
.
left
,
edrc
.
top
,
edrc
.
right
,
edrc
.
bottom
);
}
}
}
}
else
{
else
{
ERR
(
"NOT drawing item -1 special focus, rect=(%ld,%ld)-(%ld,%l
d), action=%08x, state=%08x
\n
"
,
ERR
(
"NOT drawing item -1 special focus, rect=(%d,%d)-(%d,%
d), action=%08x, state=%08x
\n
"
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
left
,
dis
->
rcItem
.
top
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
,
dis
->
rcItem
.
right
,
dis
->
rcItem
.
bottom
,
dis
->
itemAction
,
dis
->
itemState
);
dis
->
itemAction
,
dis
->
itemState
);
...
@@ -1546,7 +1546,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
...
@@ -1546,7 +1546,7 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT *dis)
rect
.
right
=
x
+
txtsize
.
cx
;
rect
.
right
=
x
+
txtsize
.
cx
;
rect
.
top
=
dis
->
rcItem
.
top
+
1
;
rect
.
top
=
dis
->
rcItem
.
top
+
1
;
rect
.
bottom
=
dis
->
rcItem
.
bottom
-
1
;
rect
.
bottom
=
dis
->
rcItem
.
bottom
-
1
;
TRACE
(
"drawing item %d text, rect=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"drawing item %d text, rect=(%d,%d)-(%d,%
d)
\n
"
,
dis
->
itemID
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
dis
->
itemID
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ExtTextOutW
(
dis
->
hDC
,
x
,
y
,
ETO_OPAQUE
|
ETO_CLIPPED
,
ExtTextOutW
(
dis
->
hDC
,
x
,
y
,
ETO_OPAQUE
|
ETO_CLIPPED
,
&
rect
,
str
,
len
,
0
);
&
rect
,
str
,
len
,
0
);
...
@@ -1626,7 +1626,7 @@ static LRESULT COMBOEX_NCCreate (HWND hwnd)
...
@@ -1626,7 +1626,7 @@ static LRESULT COMBOEX_NCCreate (HWND hwnd)
oldstyle
=
(
DWORD
)
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
oldstyle
=
(
DWORD
)
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
newstyle
=
oldstyle
&
~
(
WS_VSCROLL
|
WS_HSCROLL
|
WS_BORDER
);
newstyle
=
oldstyle
&
~
(
WS_VSCROLL
|
WS_HSCROLL
|
WS_BORDER
);
if
(
newstyle
!=
oldstyle
)
{
if
(
newstyle
!=
oldstyle
)
{
TRACE
(
"req style %08
lx, reseting style %08l
x
\n
"
,
TRACE
(
"req style %08
x, reseting style %08
x
\n
"
,
oldstyle
,
newstyle
);
oldstyle
,
newstyle
);
SetWindowLongW
(
hwnd
,
GWL_STYLE
,
newstyle
);
SetWindowLongW
(
hwnd
,
GWL_STYLE
,
newstyle
);
}
}
...
@@ -1673,10 +1673,10 @@ static LRESULT COMBOEX_WindowPosChanging (COMBOEX_INFO *infoPtr, WINDOWPOS *wp)
...
@@ -1673,10 +1673,10 @@ static LRESULT COMBOEX_WindowPosChanging (COMBOEX_INFO *infoPtr, WINDOWPOS *wp)
TRACE
(
"winpos=(%d,%d %dx%d) flags=0x%08x
\n
"
,
TRACE
(
"winpos=(%d,%d %dx%d) flags=0x%08x
\n
"
,
wp
->
x
,
wp
->
y
,
wp
->
cx
,
wp
->
cy
,
wp
->
flags
);
wp
->
x
,
wp
->
y
,
wp
->
cx
,
wp
->
cy
,
wp
->
flags
);
TRACE
(
"EX window=(%
ld,%ld)-(%ld,%ld), client=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"EX window=(%
d,%d)-(%d,%d), client=(%d,%d)-(%d,%
d)
\n
"
,
cbx_wrect
.
left
,
cbx_wrect
.
top
,
cbx_wrect
.
right
,
cbx_wrect
.
bottom
,
cbx_wrect
.
left
,
cbx_wrect
.
top
,
cbx_wrect
.
right
,
cbx_wrect
.
bottom
,
cbx_crect
.
left
,
cbx_crect
.
top
,
cbx_crect
.
right
,
cbx_crect
.
bottom
);
cbx_crect
.
left
,
cbx_crect
.
top
,
cbx_crect
.
right
,
cbx_crect
.
bottom
);
TRACE
(
"CB window=(%
ld,%ld)-(%ld,%ld), EX setting=(0,0)-(%d,%l
d)
\n
"
,
TRACE
(
"CB window=(%
d,%d)-(%d,%d), EX setting=(0,0)-(%d,%
d)
\n
"
,
cb_wrect
.
left
,
cb_wrect
.
top
,
cb_wrect
.
right
,
cb_wrect
.
bottom
,
cb_wrect
.
left
,
cb_wrect
.
top
,
cb_wrect
.
right
,
cb_wrect
.
bottom
,
width
,
cb_wrect
.
bottom
-
cb_wrect
.
top
);
width
,
cb_wrect
.
bottom
-
cb_wrect
.
top
);
...
@@ -1734,7 +1734,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -1734,7 +1734,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
hDC
=
(
HDC
)
wParam
;
hDC
=
(
HDC
)
wParam
;
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
));
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
));
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
TRACE
(
"erasing (%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"erasing (%d,%d)-(%d,%
d)
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
SetBkColor
(
hDC
,
obkc
);
SetBkColor
(
hDC
,
obkc
);
...
@@ -1938,7 +1938,7 @@ COMBOEX_ComboWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -1938,7 +1938,7 @@ COMBOEX_ComboWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
hDC
=
(
HDC
)
wParam
;
hDC
=
(
HDC
)
wParam
;
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
));
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
));
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
TRACE
(
"erasing (%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"erasing (%d,%d)-(%d,%
d)
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
SetBkColor
(
hDC
,
obkc
);
SetBkColor
(
hDC
,
obkc
);
...
...
dlls/comctl32/comctl32undoc.c
View file @
1c16d833
...
@@ -319,7 +319,7 @@ static void MRU_SaveChanged ( LPWINEMRULIST mp )
...
@@ -319,7 +319,7 @@ static void MRU_SaveChanged ( LPWINEMRULIST mp )
if
(
err
)
{
if
(
err
)
{
ERR
(
"error saving /%s/, err=%d
\n
"
,
debugstr_w
(
realname
),
err
);
ERR
(
"error saving /%s/, err=%d
\n
"
,
debugstr_w
(
realname
),
err
);
}
}
TRACE
(
"saving value for name /%s/ size=%l
d
\n
"
,
TRACE
(
"saving value for name /%s/ size=%
d
\n
"
,
debugstr_w
(
realname
),
witem
->
size
);
debugstr_w
(
realname
),
witem
->
size
);
}
}
}
}
...
@@ -431,7 +431,7 @@ INT WINAPI FindMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData,
...
@@ -431,7 +431,7 @@ INT WINAPI FindMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData,
if
(
lpRegNum
&&
(
ret
!=
-
1
))
if
(
lpRegNum
&&
(
ret
!=
-
1
))
*
lpRegNum
=
'a'
+
i
;
*
lpRegNum
=
'a'
+
i
;
TRACE
(
"(%p, %p, %
l
d, %p) returning %d
\n
"
,
TRACE
(
"(%p, %p, %d, %p) returning %d
\n
"
,
hList
,
lpData
,
cbData
,
lpRegNum
,
ret
);
hList
,
lpData
,
cbData
,
lpRegNum
,
ret
);
return
ret
;
return
ret
;
...
@@ -497,7 +497,7 @@ INT WINAPI AddMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData)
...
@@ -497,7 +497,7 @@ INT WINAPI AddMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData)
mp
->
wineFlags
|=
WMRUF_CHANGED
;
mp
->
wineFlags
|=
WMRUF_CHANGED
;
mp
->
realMRU
[
0
]
=
replace
+
'a'
;
mp
->
realMRU
[
0
]
=
replace
+
'a'
;
TRACE
(
"(%p, %p, %
l
d) adding data, /%c/ now most current
\n
"
,
TRACE
(
"(%p, %p, %d) adding data, /%c/ now most current
\n
"
,
hList
,
lpData
,
cbData
,
replace
+
'a'
);
hList
,
lpData
,
cbData
,
replace
+
'a'
);
if
(
!
(
mp
->
extview
.
dwFlags
&
MRUF_DELAYED_SAVE
))
{
if
(
!
(
mp
->
extview
.
dwFlags
&
MRUF_DELAYED_SAVE
))
{
...
@@ -671,7 +671,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
...
@@ -671,7 +671,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
&
newkey
,
&
newkey
,
&
dwdisp
)))
{
&
dwdisp
)))
{
/* error - what to do ??? */
/* error - what to do ??? */
ERR
(
"(%
lu %lu %l
x %p %s %p): Could not open key, error=%d
\n
"
,
ERR
(
"(%
u %u %
x %p %s %p): Could not open key, error=%d
\n
"
,
mp
->
extview
.
cbSize
,
mp
->
extview
.
nMaxItems
,
mp
->
extview
.
dwFlags
,
mp
->
extview
.
cbSize
,
mp
->
extview
.
nMaxItems
,
mp
->
extview
.
dwFlags
,
mp
->
extview
.
hKey
,
debugstr_w
(
mp
->
extview
.
lpszSubKey
),
mp
->
extview
.
hKey
,
debugstr_w
(
mp
->
extview
.
lpszSubKey
),
mp
->
extview
.
lpfnCompare
,
err
);
mp
->
extview
.
lpfnCompare
,
err
);
...
@@ -690,7 +690,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
...
@@ -690,7 +690,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
else
else
datasize
/=
sizeof
(
WCHAR
);
datasize
/=
sizeof
(
WCHAR
);
TRACE
(
"MRU list = %s, datasize = %
l
d
\n
"
,
debugstr_w
(
mp
->
realMRU
),
datasize
);
TRACE
(
"MRU list = %s, datasize = %d
\n
"
,
debugstr_w
(
mp
->
realMRU
),
datasize
);
mp
->
cursize
=
datasize
-
1
;
mp
->
cursize
=
datasize
-
1
;
/* datasize now has number of items in the MRUList */
/* datasize now has number of items in the MRUList */
...
@@ -716,7 +716,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
...
@@ -716,7 +716,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
else
else
mp
->
cursize
=
0
;
mp
->
cursize
=
0
;
TRACE
(
"(%
lu %lu %lx %p %s %p): Current Size = %l
d
\n
"
,
TRACE
(
"(%
u %u %x %p %s %p): Current Size = %
d
\n
"
,
mp
->
extview
.
cbSize
,
mp
->
extview
.
nMaxItems
,
mp
->
extview
.
dwFlags
,
mp
->
extview
.
cbSize
,
mp
->
extview
.
nMaxItems
,
mp
->
extview
.
dwFlags
,
mp
->
extview
.
hKey
,
debugstr_w
(
mp
->
extview
.
lpszSubKey
),
mp
->
extview
.
hKey
,
debugstr_w
(
mp
->
extview
.
lpszSubKey
),
mp
->
extview
.
lpfnCompare
,
mp
->
cursize
);
mp
->
extview
.
lpfnCompare
,
mp
->
cursize
);
...
@@ -844,7 +844,7 @@ INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
...
@@ -844,7 +844,7 @@ INT WINAPI EnumMRUListW (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
witem
=
mp
->
array
[
desired
];
witem
=
mp
->
array
[
desired
];
datasize
=
min
(
witem
->
size
,
nBufferSize
);
datasize
=
min
(
witem
->
size
,
nBufferSize
);
memcpy
(
lpBuffer
,
&
witem
->
datastart
,
datasize
);
memcpy
(
lpBuffer
,
&
witem
->
datastart
,
datasize
);
TRACE
(
"(%p, %d, %p, %
l
d): returning len=%d
\n
"
,
TRACE
(
"(%p, %d, %p, %d): returning len=%d
\n
"
,
hList
,
nItemPos
,
lpBuffer
,
nBufferSize
,
datasize
);
hList
,
nItemPos
,
lpBuffer
,
nBufferSize
,
datasize
);
return
datasize
;
return
datasize
;
}
}
...
@@ -878,7 +878,7 @@ INT WINAPI EnumMRUListA (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
...
@@ -878,7 +878,7 @@ INT WINAPI EnumMRUListA (HANDLE hList, INT nItemPos, LPVOID lpBuffer,
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LPWSTR
)
&
witem
->
datastart
,
-
1
,
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LPWSTR
)
&
witem
->
datastart
,
-
1
,
lpBuffer
,
datasize
,
NULL
,
NULL
);
lpBuffer
,
datasize
,
NULL
,
NULL
);
}
}
TRACE
(
"(%p, %d, %p, %
l
d): returning len=%d
\n
"
,
TRACE
(
"(%p, %d, %p, %d): returning len=%d
\n
"
,
hList
,
nItemPos
,
lpBuffer
,
nBufferSize
,
datasize
);
hList
,
nItemPos
,
lpBuffer
,
nBufferSize
,
datasize
);
return
datasize
;
return
datasize
;
}
}
...
@@ -1173,7 +1173,7 @@ static LRESULT DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
...
@@ -1173,7 +1173,7 @@ static LRESULT DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
LPNMHDR
lpNmh
=
NULL
;
LPNMHDR
lpNmh
=
NULL
;
UINT
idFrom
=
0
;
UINT
idFrom
=
0
;
TRACE
(
"(%p %p %d %p 0x%08
l
x)
\n
"
,
TRACE
(
"(%p %p %d %p 0x%08x)
\n
"
,
lpNotify
->
hwndFrom
,
lpNotify
->
hwndTo
,
uCode
,
lpHdr
,
lpNotify
->
hwndFrom
,
lpNotify
->
hwndTo
,
uCode
,
lpHdr
,
lpNotify
->
dwParam5
);
lpNotify
->
dwParam5
);
...
@@ -1262,7 +1262,7 @@ LRESULT WINAPI SendNotifyEx (HWND hwndTo, HWND hwndFrom, UINT uCode,
...
@@ -1262,7 +1262,7 @@ LRESULT WINAPI SendNotifyEx (HWND hwndTo, HWND hwndFrom, UINT uCode,
NOTIFYDATA
notify
;
NOTIFYDATA
notify
;
HWND
hwndNotify
;
HWND
hwndNotify
;
TRACE
(
"(%p %p %d %p 0x%08
l
x)
\n
"
,
TRACE
(
"(%p %p %d %p 0x%08x)
\n
"
,
hwndFrom
,
hwndTo
,
uCode
,
lpHdr
,
dwParam5
);
hwndFrom
,
hwndTo
,
uCode
,
lpHdr
,
dwParam5
);
hwndNotify
=
hwndTo
;
hwndNotify
=
hwndTo
;
...
...
dlls/comctl32/commctrl.c
View file @
1c16d833
...
@@ -110,7 +110,7 @@ static const WCHAR strCC32SubclassInfo[] = {
...
@@ -110,7 +110,7 @@ static const WCHAR strCC32SubclassInfo[] = {
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
{
TRACE
(
"%p,%
l
x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
...
@@ -637,7 +637,7 @@ InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
...
@@ -637,7 +637,7 @@ InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
if
(
lpInitCtrls
->
dwSize
!=
sizeof
(
INITCOMMONCONTROLSEX
))
if
(
lpInitCtrls
->
dwSize
!=
sizeof
(
INITCOMMONCONTROLSEX
))
return
FALSE
;
return
FALSE
;
TRACE
(
"(0x%08
l
x)
\n
"
,
lpInitCtrls
->
dwICC
);
TRACE
(
"(0x%08x)
\n
"
,
lpInitCtrls
->
dwICC
);
for
(
cCount
=
0
;
cCount
<
32
;
cCount
++
)
{
for
(
cCount
=
0
;
cCount
<
32
;
cCount
++
)
{
dwMask
=
1
<<
cCount
;
dwMask
=
1
<<
cCount
;
...
@@ -687,7 +687,7 @@ InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
...
@@ -687,7 +687,7 @@ InitCommonControlsEx (LPINITCOMMONCONTROLSEX lpInitCtrls)
break
;
break
;
default:
default:
FIXME
(
"Unknown class! dwICC=0x%
l
X
\n
"
,
dwMask
);
FIXME
(
"Unknown class! dwICC=0x%X
\n
"
,
dwMask
);
break
;
break
;
}
}
}
}
...
@@ -949,7 +949,7 @@ HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
...
@@ -949,7 +949,7 @@ HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
pdvi
->
dwBuildNumber
=
2919
;
pdvi
->
dwBuildNumber
=
2919
;
pdvi
->
dwPlatformID
=
6304
;
pdvi
->
dwPlatformID
=
6304
;
TRACE
(
"%
lu.%lu.%lu.%l
u
\n
"
,
TRACE
(
"%
u.%u.%u.%
u
\n
"
,
pdvi
->
dwMajorVersion
,
pdvi
->
dwMinorVersion
,
pdvi
->
dwMajorVersion
,
pdvi
->
dwMinorVersion
,
pdvi
->
dwBuildNumber
,
pdvi
->
dwPlatformID
);
pdvi
->
dwBuildNumber
,
pdvi
->
dwPlatformID
);
...
...
dlls/comctl32/datetime.c
View file @
1c16d833
...
@@ -667,7 +667,7 @@ DATETIME_HitTest (DATETIME_INFO *infoPtr, POINT pt)
...
@@ -667,7 +667,7 @@ DATETIME_HitTest (DATETIME_INFO *infoPtr, POINT pt)
{
{
int
i
;
int
i
;
TRACE
(
"%
ld, %l
d
\n
"
,
pt
.
x
,
pt
.
y
);
TRACE
(
"%
d, %
d
\n
"
,
pt
.
x
,
pt
.
y
);
if
(
PtInRect
(
&
infoPtr
->
calbutton
,
pt
))
return
DTHT_MCPOPUP
;
if
(
PtInRect
(
&
infoPtr
->
calbutton
,
pt
))
return
DTHT_MCPOPUP
;
if
(
PtInRect
(
&
infoPtr
->
checkbox
,
pt
))
return
DTHT_CHECKBOX
;
if
(
PtInRect
(
&
infoPtr
->
checkbox
,
pt
))
return
DTHT_CHECKBOX
;
...
@@ -1095,7 +1095,7 @@ DATETIME_Size (DATETIME_INFO *infoPtr, WORD flags, INT width, INT height)
...
@@ -1095,7 +1095,7 @@ DATETIME_Size (DATETIME_INFO *infoPtr, WORD flags, INT width, INT height)
infoPtr
->
rcClient
.
bottom
=
height
;
infoPtr
->
rcClient
.
bottom
=
height
;
infoPtr
->
rcClient
.
right
=
width
;
infoPtr
->
rcClient
.
right
=
width
;
TRACE
(
"Height=%
ld, Width=%l
d
\n
"
,
infoPtr
->
rcClient
.
bottom
,
infoPtr
->
rcClient
.
right
);
TRACE
(
"Height=%
d, Width=%
d
\n
"
,
infoPtr
->
rcClient
.
bottom
,
infoPtr
->
rcClient
.
right
);
infoPtr
->
rcDraw
=
infoPtr
->
rcClient
;
infoPtr
->
rcDraw
=
infoPtr
->
rcClient
;
...
@@ -1132,7 +1132,7 @@ DATETIME_StyleChanged(DATETIME_INFO *infoPtr, WPARAM wStyleType, LPSTYLESTRUCT l
...
@@ -1132,7 +1132,7 @@ DATETIME_StyleChanged(DATETIME_INFO *infoPtr, WPARAM wStyleType, LPSTYLESTRUCT l
{
{
static
const
WCHAR
buttonW
[]
=
{
'b'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
buttonW
[]
=
{
'b'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
};
TRACE
(
"(styletype=%x, styleOld=0x%08
lx, styleNew=0x%08l
x)
\n
"
,
TRACE
(
"(styletype=%x, styleOld=0x%08
x, styleNew=0x%08
x)
\n
"
,
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
...
...
dlls/comctl32/dpa.c
View file @
1c16d833
...
@@ -123,7 +123,7 @@ HRESULT WINAPI DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc,
...
@@ -123,7 +123,7 @@ HRESULT WINAPI DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc,
if
(
errCode
!=
S_OK
)
if
(
errCode
!=
S_OK
)
return
errCode
;
return
errCode
;
FIXME
(
"dwSize=%
lu dwData2=%lu dwItems=%l
u
\n
"
,
FIXME
(
"dwSize=%
u dwData2=%u dwItems=%
u
\n
"
,
streamData
.
dwSize
,
streamData
.
dwData2
,
streamData
.
dwItems
);
streamData
.
dwSize
,
streamData
.
dwData2
,
streamData
.
dwItems
);
if
(
ulRead
<
sizeof
(
STREAMDATA
)
||
if
(
ulRead
<
sizeof
(
STREAMDATA
)
||
...
@@ -162,7 +162,7 @@ HRESULT WINAPI DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc,
...
@@ -162,7 +162,7 @@ HRESULT WINAPI DPA_LoadStream (HDPA *phDpa, DPALOADPROC loadProc,
/* store the handle to the dpa */
/* store the handle to the dpa */
*
phDpa
=
hDpa
;
*
phDpa
=
hDpa
;
FIXME
(
"new hDpa=%p, errorcode=%
l
x
\n
"
,
hDpa
,
errCode
);
FIXME
(
"new hDpa=%p, errorcode=%x
\n
"
,
hDpa
,
errCode
);
return
errCode
;
return
errCode
;
}
}
...
@@ -226,7 +226,7 @@ BOOL WINAPI DPA_Merge (const HDPA hdpa1, const HDPA hdpa2, DWORD dwFlags,
...
@@ -226,7 +226,7 @@ BOOL WINAPI DPA_Merge (const HDPA hdpa1, const HDPA hdpa2, DWORD dwFlags,
INT
nResult
,
i
;
INT
nResult
,
i
;
INT
nIndex
;
INT
nIndex
;
TRACE
(
"%p %p %08
l
x %p %p %08lx)
\n
"
,
TRACE
(
"%p %p %08x %p %p %08lx)
\n
"
,
hdpa1
,
hdpa2
,
dwFlags
,
pfnCompare
,
pfnMerge
,
lParam
);
hdpa1
,
hdpa2
,
dwFlags
,
pfnCompare
,
pfnMerge
,
lParam
);
if
(
IsBadWritePtr
(
hdpa1
,
sizeof
(
*
hdpa1
)))
if
(
IsBadWritePtr
(
hdpa1
,
sizeof
(
*
hdpa1
)))
...
...
dlls/comctl32/draglist.c
View file @
1c16d833
...
@@ -292,7 +292,7 @@ INT WINAPI LBItemFromPt (HWND hwndLB, POINT pt, BOOL bAutoScroll)
...
@@ -292,7 +292,7 @@ INT WINAPI LBItemFromPt (HWND hwndLB, POINT pt, BOOL bAutoScroll)
INT
nIndex
;
INT
nIndex
;
DWORD
dwScrollTime
;
DWORD
dwScrollTime
;
TRACE
(
"(%p %
ld x %l
d %s)
\n
"
,
TRACE
(
"(%p %
d x %
d %s)
\n
"
,
hwndLB
,
pt
.
x
,
pt
.
y
,
bAutoScroll
?
"TRUE"
:
"FALSE"
);
hwndLB
,
pt
.
x
,
pt
.
y
,
bAutoScroll
?
"TRUE"
:
"FALSE"
);
ScreenToClient
(
hwndLB
,
&
pt
);
ScreenToClient
(
hwndLB
,
&
pt
);
...
...
dlls/comctl32/hotkey.c
View file @
1c16d833
...
@@ -289,7 +289,7 @@ HOTKEY_KeyDown (HOTKEY_INFO *infoPtr, DWORD key, DWORD flags)
...
@@ -289,7 +289,7 @@ HOTKEY_KeyDown (HOTKEY_INFO *infoPtr, DWORD key, DWORD flags)
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
WS_DISABLED
)
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
WS_DISABLED
)
return
0
;
return
0
;
TRACE
(
"() Key: %
l
d
\n
"
,
key
);
TRACE
(
"() Key: %d
\n
"
,
key
);
wOldHotKey
=
infoPtr
->
HotKey
;
wOldHotKey
=
infoPtr
->
HotKey
;
bOldMod
=
infoPtr
->
CurrMod
;
bOldMod
=
infoPtr
->
CurrMod
;
...
@@ -349,7 +349,7 @@ HOTKEY_KeyUp (HOTKEY_INFO *infoPtr, DWORD key, DWORD flags)
...
@@ -349,7 +349,7 @@ HOTKEY_KeyUp (HOTKEY_INFO *infoPtr, DWORD key, DWORD flags)
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
WS_DISABLED
)
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
WS_DISABLED
)
return
0
;
return
0
;
TRACE
(
"() Key: %
l
d
\n
"
,
key
);
TRACE
(
"() Key: %d
\n
"
,
key
);
bOldMod
=
infoPtr
->
CurrMod
;
bOldMod
=
infoPtr
->
CurrMod
;
...
...
dlls/comctl32/imagelist.c
View file @
1c16d833
...
@@ -285,7 +285,7 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
...
@@ -285,7 +285,7 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
HBITMAP
hMaskBitmap
=
0
;
HBITMAP
hMaskBitmap
=
0
;
COLORREF
bkColor
;
COLORREF
bkColor
;
TRACE
(
"himl=%p hbitmap=%p clrmask=%
l
x
\n
"
,
himl
,
hBitmap
,
clrMask
);
TRACE
(
"himl=%p hbitmap=%p clrmask=%x
\n
"
,
himl
,
hBitmap
,
clrMask
);
if
(
!
is_valid
(
himl
))
if
(
!
is_valid
(
himl
))
return
-
1
;
return
-
1
;
...
@@ -2440,7 +2440,7 @@ ImageList_SetDragCursorImage (HIMAGELIST himlDrag, INT iDrag,
...
@@ -2440,7 +2440,7 @@ ImageList_SetDragCursorImage (HIMAGELIST himlDrag, INT iDrag,
BOOL
WINAPI
BOOL
WINAPI
ImageList_SetFilter
(
HIMAGELIST
himl
,
INT
i
,
DWORD
dwFilter
)
ImageList_SetFilter
(
HIMAGELIST
himl
,
INT
i
,
DWORD
dwFilter
)
{
{
FIXME
(
"(%p 0x%x 0x%
l
x):empty stub!
\n
"
,
himl
,
i
,
dwFilter
);
FIXME
(
"(%p 0x%x 0x%x):empty stub!
\n
"
,
himl
,
i
,
dwFilter
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -2465,7 +2465,7 @@ ImageList_SetFilter (HIMAGELIST himl, INT i, DWORD dwFilter)
...
@@ -2465,7 +2465,7 @@ ImageList_SetFilter (HIMAGELIST himl, INT i, DWORD dwFilter)
DWORD
WINAPI
DWORD
WINAPI
ImageList_SetFlags
(
HIMAGELIST
himl
,
DWORD
flags
)
ImageList_SetFlags
(
HIMAGELIST
himl
,
DWORD
flags
)
{
{
FIXME
(
"(%p %08
l
x):empty stub
\n
"
,
himl
,
flags
);
FIXME
(
"(%p %08x):empty stub
\n
"
,
himl
,
flags
);
return
0
;
return
0
;
}
}
...
...
dlls/comctl32/listview.c
View file @
1c16d833
...
@@ -395,13 +395,13 @@ typedef struct tagLISTVIEW_INFO
...
@@ -395,13 +395,13 @@ typedef struct tagLISTVIEW_INFO
/* Dump the LISTVIEW_INFO structure to the debug channel */
/* Dump the LISTVIEW_INFO structure to the debug channel */
#define LISTVIEW_DUMP(iP) do { \
#define LISTVIEW_DUMP(iP) do { \
TRACE("hwndSelf=%p, clrBk=0x%06
lx, clrText=0x%06lx, clrTextBk=0x%06lx, ItemHeight=%d, ItemWidth=%d, Style=0x%08l
x\n", \
TRACE("hwndSelf=%p, clrBk=0x%06
x, clrText=0x%06x, clrTextBk=0x%06x, ItemHeight=%d, ItemWidth=%d, Style=0x%08
x\n", \
iP->hwndSelf, iP->clrBk, iP->clrText, iP->clrTextBk, \
iP->hwndSelf, iP->clrBk, iP->clrText, iP->clrTextBk, \
iP->nItemHeight, iP->nItemWidth, iP->dwStyle); \
iP->nItemHeight, iP->nItemWidth, iP->dwStyle); \
TRACE("hwndSelf=%p, himlNor=%p, himlSml=%p, himlState=%p, Focused=%d, Hot=%d, exStyle=0x%08
l
x, Focus=%d\n", \
TRACE("hwndSelf=%p, himlNor=%p, himlSml=%p, himlState=%p, Focused=%d, Hot=%d, exStyle=0x%08x, Focus=%d\n", \
iP->hwndSelf, iP->himlNormal, iP->himlSmall, iP->himlState, \
iP->hwndSelf, iP->himlNormal, iP->himlSmall, iP->himlState, \
iP->nFocusedItem, iP->nHotItem, iP->dwLvExStyle, iP->bFocus ); \
iP->nFocusedItem, iP->nHotItem, iP->dwLvExStyle, iP->bFocus ); \
TRACE("hwndSelf=%p, ntmH=%d, icSz.cx=%
ld, icSz.cy=%ld, icSp.cx=%ld, icSp.cy=%l
d, notifyFmt=%d\n", \
TRACE("hwndSelf=%p, ntmH=%d, icSz.cx=%
d, icSz.cy=%d, icSp.cx=%d, icSp.cy=%
d, notifyFmt=%d\n", \
iP->hwndSelf, iP->ntmHeight, iP->iconSize.cx, iP->iconSize.cy, \
iP->hwndSelf, iP->ntmHeight, iP->iconSize.cx, iP->iconSize.cy, \
iP->iconSpacing.cx, iP->iconSpacing.cy, iP->notifyFormat); \
iP->iconSpacing.cx, iP->iconSpacing.cy, iP->notifyFormat); \
TRACE("hwndSelf=%p, rcList=%s\n", iP->hwndSelf, wine_dbgstr_rect(&iP->rcList)); \
TRACE("hwndSelf=%p, rcList=%s\n", iP->hwndSelf, wine_dbgstr_rect(&iP->rcList)); \
...
@@ -5592,7 +5592,7 @@ static BOOL LISTVIEW_GetItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lprc)
...
@@ -5592,7 +5592,7 @@ static BOOL LISTVIEW_GetItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lprc)
break
;
break
;
default:
default:
WARN
(
"Unknown value: %
l
d
\n
"
,
lprc
->
left
);
WARN
(
"Unknown value: %d
\n
"
,
lprc
->
left
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -5631,7 +5631,7 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
...
@@ -5631,7 +5631,7 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
nColumn
=
lprc
->
top
;
nColumn
=
lprc
->
top
;
TRACE
(
"(nItem=%d, nSubItem=%
l
d)
\n
"
,
nItem
,
lprc
->
top
);
TRACE
(
"(nItem=%d, nSubItem=%d)
\n
"
,
nItem
,
lprc
->
top
);
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
if
(
lprc
->
top
==
0
)
if
(
lprc
->
top
==
0
)
return
LISTVIEW_GetItemRect
(
infoPtr
,
nItem
,
lprc
);
return
LISTVIEW_GetItemRect
(
infoPtr
,
nItem
,
lprc
);
...
@@ -5659,7 +5659,7 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
...
@@ -5659,7 +5659,7 @@ static BOOL LISTVIEW_GetSubItemRect(LISTVIEW_INFO *infoPtr, INT nItem, LPRECT lp
break
;
break
;
default:
default:
ERR
(
"Unknown bounds=%
l
d
\n
"
,
lprc
->
left
);
ERR
(
"Unknown bounds=%d
\n
"
,
lprc
->
left
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -6444,7 +6444,7 @@ static BOOL LISTVIEW_Scroll(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
...
@@ -6444,7 +6444,7 @@ static BOOL LISTVIEW_Scroll(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
*/
*/
static
BOOL
LISTVIEW_SetBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrBk
)
static
BOOL
LISTVIEW_SetBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrBk
)
{
{
TRACE
(
"(clrBk=%
l
x)
\n
"
,
clrBk
);
TRACE
(
"(clrBk=%x)
\n
"
,
clrBk
);
if
(
infoPtr
->
clrBk
!=
clrBk
)
{
if
(
infoPtr
->
clrBk
!=
clrBk
)
{
if
(
infoPtr
->
clrBk
!=
CLR_NONE
)
DeleteObject
(
infoPtr
->
hBkBrush
);
if
(
infoPtr
->
clrBk
!=
CLR_NONE
)
DeleteObject
(
infoPtr
->
hBkBrush
);
...
@@ -7017,7 +7017,7 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
...
@@ -7017,7 +7017,7 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
infoPtr
->
iconSpacing
.
cx
=
cx
;
infoPtr
->
iconSpacing
.
cx
=
cx
;
infoPtr
->
iconSpacing
.
cy
=
cy
;
infoPtr
->
iconSpacing
.
cy
=
cy
;
TRACE
(
"old=(%d,%d), new=(%d,%d), iconSize=(%
ld,%l
d), ntmH=%d
\n
"
,
TRACE
(
"old=(%d,%d), new=(%d,%d), iconSize=(%
d,%
d), ntmH=%d
\n
"
,
LOWORD
(
oldspacing
),
HIWORD
(
oldspacing
),
cx
,
cy
,
LOWORD
(
oldspacing
),
HIWORD
(
oldspacing
),
cx
,
cy
,
infoPtr
->
iconSize
.
cx
,
infoPtr
->
iconSize
.
cy
,
infoPtr
->
iconSize
.
cx
,
infoPtr
->
iconSize
.
cy
,
infoPtr
->
ntmHeight
);
infoPtr
->
ntmHeight
);
...
@@ -7114,7 +7114,7 @@ static HIMAGELIST LISTVIEW_SetImageList(LISTVIEW_INFO *infoPtr, INT nType, HIMAG
...
@@ -7114,7 +7114,7 @@ static HIMAGELIST LISTVIEW_SetImageList(LISTVIEW_INFO *infoPtr, INT nType, HIMAG
*/
*/
static
BOOL
LISTVIEW_SetItemCount
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItems
,
DWORD
dwFlags
)
static
BOOL
LISTVIEW_SetItemCount
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItems
,
DWORD
dwFlags
)
{
{
TRACE
(
"(nItems=%d, dwFlags=%
l
x)
\n
"
,
nItems
,
dwFlags
);
TRACE
(
"(nItems=%d, dwFlags=%x)
\n
"
,
nItems
,
dwFlags
);
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
{
{
...
@@ -7381,7 +7381,7 @@ static INT LISTVIEW_SetSelectionMark(LISTVIEW_INFO *infoPtr, INT nIndex)
...
@@ -7381,7 +7381,7 @@ static INT LISTVIEW_SetSelectionMark(LISTVIEW_INFO *infoPtr, INT nIndex)
*/
*/
static
BOOL
LISTVIEW_SetTextBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrTextBk
)
static
BOOL
LISTVIEW_SetTextBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrTextBk
)
{
{
TRACE
(
"(clrTextBk=%
l
x)
\n
"
,
clrTextBk
);
TRACE
(
"(clrTextBk=%x)
\n
"
,
clrTextBk
);
if
(
infoPtr
->
clrTextBk
!=
clrTextBk
)
if
(
infoPtr
->
clrTextBk
!=
clrTextBk
)
{
{
...
@@ -7406,7 +7406,7 @@ static BOOL LISTVIEW_SetTextBkColor(LISTVIEW_INFO *infoPtr, COLORREF clrTextBk)
...
@@ -7406,7 +7406,7 @@ static BOOL LISTVIEW_SetTextBkColor(LISTVIEW_INFO *infoPtr, COLORREF clrTextBk)
*/
*/
static
BOOL
LISTVIEW_SetTextColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrText
)
static
BOOL
LISTVIEW_SetTextColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
clrText
)
{
{
TRACE
(
"(clrText=%
l
x)
\n
"
,
clrText
);
TRACE
(
"(clrText=%x)
\n
"
,
clrText
);
if
(
infoPtr
->
clrText
!=
clrText
)
if
(
infoPtr
->
clrText
!=
clrText
)
{
{
...
@@ -8117,7 +8117,7 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW_INFO *infoPtr, INT nVirtualKey, LONG lK
...
@@ -8117,7 +8117,7 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW_INFO *infoPtr, INT nVirtualKey, LONG lK
INT
nItem
=
-
1
;
INT
nItem
=
-
1
;
NMLVKEYDOWN
nmKeyDown
;
NMLVKEYDOWN
nmKeyDown
;
TRACE
(
"(nVirtualKey=%d, lKeyData=%
l
d)
\n
"
,
nVirtualKey
,
lKeyData
);
TRACE
(
"(nVirtualKey=%d, lKeyData=%d)
\n
"
,
nVirtualKey
,
lKeyData
);
/* send LVN_KEYDOWN notification */
/* send LVN_KEYDOWN notification */
nmKeyDown
.
wVKey
=
nVirtualKey
;
nmKeyDown
.
wVKey
=
nVirtualKey
;
...
@@ -8755,7 +8755,7 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
...
@@ -8755,7 +8755,7 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
*/
*/
static
LRESULT
LISTVIEW_PrintClient
(
LISTVIEW_INFO
*
infoPtr
,
HDC
hdc
,
DWORD
options
)
static
LRESULT
LISTVIEW_PrintClient
(
LISTVIEW_INFO
*
infoPtr
,
HDC
hdc
,
DWORD
options
)
{
{
FIXME
(
"Partial Stub: (hdc=%p options=0x%08
l
x)
\n
"
,
hdc
,
options
);
FIXME
(
"Partial Stub: (hdc=%p options=0x%08x)
\n
"
,
hdc
,
options
);
if
((
options
&
PRF_CHECKVISIBLE
)
&&
!
IsWindowVisible
(
infoPtr
->
hwndSelf
))
if
((
options
&
PRF_CHECKVISIBLE
)
&&
!
IsWindowVisible
(
infoPtr
->
hwndSelf
))
return
0
;
return
0
;
...
@@ -9123,7 +9123,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
...
@@ -9123,7 +9123,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
UINT
uNewView
=
lpss
->
styleNew
&
LVS_TYPEMASK
;
UINT
uNewView
=
lpss
->
styleNew
&
LVS_TYPEMASK
;
UINT
uOldView
=
lpss
->
styleOld
&
LVS_TYPEMASK
;
UINT
uOldView
=
lpss
->
styleOld
&
LVS_TYPEMASK
;
TRACE
(
"(styletype=%x, styleOld=0x%08
lx, styleNew=0x%08l
x)
\n
"
,
TRACE
(
"(styletype=%x, styleOld=0x%08
x, styleNew=0x%08
x)
\n
"
,
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
...
@@ -9161,7 +9161,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
...
@@ -9161,7 +9161,7 @@ static INT LISTVIEW_StyleChanged(LISTVIEW_INFO *infoPtr, WPARAM wStyleType,
{
{
if
((
infoPtr
->
iconSize
.
cx
!=
oldIconSize
.
cx
)
||
(
infoPtr
->
iconSize
.
cy
!=
oldIconSize
.
cy
))
if
((
infoPtr
->
iconSize
.
cx
!=
oldIconSize
.
cx
)
||
(
infoPtr
->
iconSize
.
cy
!=
oldIconSize
.
cy
))
{
{
TRACE
(
"icon old size=(%ld,%ld), new size=(%ld,%l
d)
\n
"
,
TRACE
(
"icon old size=(%d,%d), new size=(%d,%
d)
\n
"
,
oldIconSize
.
cx
,
oldIconSize
.
cy
,
infoPtr
->
iconSize
.
cx
,
infoPtr
->
iconSize
.
cy
);
oldIconSize
.
cx
,
oldIconSize
.
cy
,
infoPtr
->
iconSize
.
cx
,
infoPtr
->
iconSize
.
cy
);
LISTVIEW_SetIconSpacing
(
infoPtr
,
0
,
0
);
LISTVIEW_SetIconSpacing
(
infoPtr
,
0
,
0
);
}
}
...
...
dlls/comctl32/monthcal.c
View file @
1c16d833
...
@@ -343,7 +343,7 @@ static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month
...
@@ -343,7 +343,7 @@ static void MONTHCAL_DrawDay(MONTHCAL_INFO *infoPtr, HDC hdc, int day, int month
RECT
r2
;
RECT
r2
;
TRACE
(
"%d %d %d
\n
"
,
day
,
infoPtr
->
minSel
.
wDay
,
infoPtr
->
maxSel
.
wDay
);
TRACE
(
"%d %d %d
\n
"
,
day
,
infoPtr
->
minSel
.
wDay
,
infoPtr
->
maxSel
.
wDay
);
TRACE
(
"%
ld %ld %ld %l
d
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
TRACE
(
"%
d %d %d %
d
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
oldCol
=
SetTextColor
(
hdc
,
infoPtr
->
monthbk
);
oldCol
=
SetTextColor
(
hdc
,
infoPtr
->
monthbk
);
oldBk
=
SetBkColor
(
hdc
,
infoPtr
->
trailingtxt
);
oldBk
=
SetBkColor
(
hdc
,
infoPtr
->
trailingtxt
);
hbr
=
GetSysColorBrush
(
COLOR_GRAYTEXT
);
hbr
=
GetSysColorBrush
(
COLOR_GRAYTEXT
);
...
...
dlls/comctl32/pager.c
View file @
1c16d833
...
@@ -337,7 +337,7 @@ PAGER_GetBorder(PAGER_INFO *infoPtr)
...
@@ -337,7 +337,7 @@ PAGER_GetBorder(PAGER_INFO *infoPtr)
static
inline
COLORREF
static
inline
COLORREF
PAGER_GetBkColor
(
PAGER_INFO
*
infoPtr
)
PAGER_GetBkColor
(
PAGER_INFO
*
infoPtr
)
{
{
TRACE
(
"[%p] returns %06
l
x
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
clrBk
);
TRACE
(
"[%p] returns %06x
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
clrBk
);
return
infoPtr
->
clrBk
;
return
infoPtr
->
clrBk
;
}
}
...
@@ -654,7 +654,7 @@ PAGER_SetBkColor (PAGER_INFO* infoPtr, COLORREF clrBk)
...
@@ -654,7 +654,7 @@ PAGER_SetBkColor (PAGER_INFO* infoPtr, COLORREF clrBk)
COLORREF
clrTemp
=
infoPtr
->
clrBk
;
COLORREF
clrTemp
=
infoPtr
->
clrBk
;
infoPtr
->
clrBk
=
clrBk
;
infoPtr
->
clrBk
=
clrBk
;
TRACE
(
"[%p] %06
l
x
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
clrBk
);
TRACE
(
"[%p] %06x
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
clrBk
);
/* the native control seems to do things this way */
/* the native control seems to do things this way */
SetWindowPos
(
infoPtr
->
hwndSelf
,
0
,
0
,
0
,
0
,
0
,
SetWindowPos
(
infoPtr
->
hwndSelf
,
0
,
0
,
0
,
0
,
0
,
...
@@ -889,7 +889,7 @@ PAGER_NCCalcSize(PAGER_INFO* infoPtr, WPARAM wParam, LPRECT lpRect)
...
@@ -889,7 +889,7 @@ PAGER_NCCalcSize(PAGER_INFO* infoPtr, WPARAM wParam, LPRECT lpRect)
infoPtr
->
nPos
,
infoPtr
->
nHeight
,
infoPtr
->
nPos
,
infoPtr
->
nHeight
,
wine_dbgstr_rect
(
&
rcWindow
));
wine_dbgstr_rect
(
&
rcWindow
));
TRACE
(
"[%p] client rect set to %
ldx%ld at (%ld,%l
d) BtnState[%d,%d]
\n
"
,
TRACE
(
"[%p] client rect set to %
dx%d at (%d,%
d) BtnState[%d,%d]
\n
"
,
infoPtr
->
hwndSelf
,
lpRect
->
right
-
lpRect
->
left
,
lpRect
->
bottom
-
lpRect
->
top
,
infoPtr
->
hwndSelf
,
lpRect
->
right
-
lpRect
->
left
,
lpRect
->
bottom
-
lpRect
->
top
,
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
left
,
lpRect
->
top
,
infoPtr
->
TLbtnState
,
infoPtr
->
BRbtnState
);
infoPtr
->
TLbtnState
,
infoPtr
->
BRbtnState
);
...
@@ -1010,7 +1010,7 @@ PAGER_MouseMove (PAGER_INFO* infoPtr, INT keys, INT x, INT y)
...
@@ -1010,7 +1010,7 @@ PAGER_MouseMove (PAGER_INFO* infoPtr, INT keys, INT x, INT y)
/* If in one of the buttons the capture and draw buttons */
/* If in one of the buttons the capture and draw buttons */
if
(
btnrect
)
if
(
btnrect
)
{
{
TRACE
(
"[%p] draw btn (%ld,%ld)-(%ld,%ld), Capture %s, style %08l
x
\n
"
,
TRACE
(
"[%p] draw btn (%d,%d)-(%d,%d), Capture %s, style %08
x
\n
"
,
infoPtr
->
hwndSelf
,
btnrect
->
left
,
btnrect
->
top
,
infoPtr
->
hwndSelf
,
btnrect
->
left
,
btnrect
->
top
,
btnrect
->
right
,
btnrect
->
bottom
,
btnrect
->
right
,
btnrect
->
bottom
,
(
infoPtr
->
bCapture
)
?
"TRUE"
:
"FALSE"
,
(
infoPtr
->
bCapture
)
?
"TRUE"
:
"FALSE"
,
...
@@ -1179,7 +1179,7 @@ PAGER_Timer (PAGER_INFO* infoPtr, INT nTimerId)
...
@@ -1179,7 +1179,7 @@ PAGER_Timer (PAGER_INFO* infoPtr, INT nTimerId)
else
else
dir
=
(
infoPtr
->
dwStyle
&
PGS_HORZ
)
?
dir
=
(
infoPtr
->
dwStyle
&
PGS_HORZ
)
?
PGF_SCROLLRIGHT
:
PGF_SCROLLDOWN
;
PGF_SCROLLRIGHT
:
PGF_SCROLLDOWN
;
TRACE
(
"[%p] TIMERID1: style=%08
lx, dir=%d
\n
"
,
TRACE
(
"[%p] TIMERID1: style=%08
x, dir=%d
\n
"
,
infoPtr
->
hwndSelf
,
infoPtr
->
dwStyle
,
dir
);
infoPtr
->
hwndSelf
,
infoPtr
->
dwStyle
,
dir
);
KillTimer
(
infoPtr
->
hwndSelf
,
TIMERID1
);
KillTimer
(
infoPtr
->
hwndSelf
,
TIMERID1
);
SetTimer
(
infoPtr
->
hwndSelf
,
TIMERID1
,
REPEAT_DELAY
,
0
);
SetTimer
(
infoPtr
->
hwndSelf
,
TIMERID1
,
REPEAT_DELAY
,
0
);
...
@@ -1241,7 +1241,7 @@ PAGER_StyleChanged(PAGER_INFO *infoPtr, WPARAM wStyleType, LPSTYLESTRUCT lpss)
...
@@ -1241,7 +1241,7 @@ PAGER_StyleChanged(PAGER_INFO *infoPtr, WPARAM wStyleType, LPSTYLESTRUCT lpss)
{
{
DWORD
oldStyle
=
infoPtr
->
dwStyle
;
DWORD
oldStyle
=
infoPtr
->
dwStyle
;
TRACE
(
"(styletype=%x, styleOld=0x%08
lx, styleNew=0x%08l
x)
\n
"
,
TRACE
(
"(styletype=%x, styleOld=0x%08
x, styleNew=0x%08
x)
\n
"
,
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
wStyleType
,
lpss
->
styleOld
,
lpss
->
styleNew
);
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
if
(
wStyleType
!=
GWL_STYLE
)
return
0
;
...
...
dlls/comctl32/propsheet.c
View file @
1c16d833
...
@@ -303,7 +303,7 @@ static BOOL PROPSHEET_CollectSheetInfoA(LPCPROPSHEETHEADERA lppsh,
...
@@ -303,7 +303,7 @@ static BOOL PROPSHEET_CollectSheetInfoA(LPCPROPSHEETHEADERA lppsh,
psInfo
->
isModeless
=
dwFlags
&
PSH_MODELESS
;
psInfo
->
isModeless
=
dwFlags
&
PSH_MODELESS
;
memcpy
(
&
psInfo
->
ppshheader
,
lppsh
,
dwSize
);
memcpy
(
&
psInfo
->
ppshheader
,
lppsh
,
dwSize
);
TRACE
(
"
\n
** PROPSHEETHEADER **
\n
dwSize
\t\t
%
ld
\n
dwFlags
\t\t
%08l
x
\n
hwndParent
\t
%p
\n
hInstance
\t
%p
\n
pszCaption
\t
'%s'
\n
nPages
\t\t
%d
\n
pfnCallback
\t
%p
\n
"
,
TRACE
(
"
\n
** PROPSHEETHEADER **
\n
dwSize
\t\t
%
d
\n
dwFlags
\t\t
%08
x
\n
hwndParent
\t
%p
\n
hInstance
\t
%p
\n
pszCaption
\t
'%s'
\n
nPages
\t\t
%d
\n
pfnCallback
\t
%p
\n
"
,
lppsh
->
dwSize
,
lppsh
->
dwFlags
,
lppsh
->
hwndParent
,
lppsh
->
hInstance
,
lppsh
->
dwSize
,
lppsh
->
dwFlags
,
lppsh
->
hwndParent
,
lppsh
->
hInstance
,
debugstr_a
(
lppsh
->
pszCaption
),
lppsh
->
nPages
,
lppsh
->
pfnCallback
);
debugstr_a
(
lppsh
->
pszCaption
),
lppsh
->
nPages
,
lppsh
->
pfnCallback
);
...
@@ -359,7 +359,7 @@ static BOOL PROPSHEET_CollectSheetInfoW(LPCPROPSHEETHEADERW lppsh,
...
@@ -359,7 +359,7 @@ static BOOL PROPSHEET_CollectSheetInfoW(LPCPROPSHEETHEADERW lppsh,
psInfo
->
isModeless
=
dwFlags
&
PSH_MODELESS
;
psInfo
->
isModeless
=
dwFlags
&
PSH_MODELESS
;
memcpy
(
&
psInfo
->
ppshheader
,
lppsh
,
dwSize
);
memcpy
(
&
psInfo
->
ppshheader
,
lppsh
,
dwSize
);
TRACE
(
"
\n
** PROPSHEETHEADER **
\n
dwSize
\t\t
%
ld
\n
dwFlags
\t\t
%08l
x
\n
hwndParent
\t
%p
\n
hInstance
\t
%p
\n
pszCaption
\t
'%s'
\n
nPages
\t\t
%d
\n
pfnCallback
\t
%p
\n
"
,
TRACE
(
"
\n
** PROPSHEETHEADER **
\n
dwSize
\t\t
%
d
\n
dwFlags
\t\t
%08
x
\n
hwndParent
\t
%p
\n
hInstance
\t
%p
\n
pszCaption
\t
'%s'
\n
nPages
\t\t
%d
\n
pfnCallback
\t
%p
\n
"
,
lppsh
->
dwSize
,
lppsh
->
dwFlags
,
lppsh
->
hwndParent
,
lppsh
->
hInstance
,
debugstr_w
(
lppsh
->
pszCaption
),
lppsh
->
nPages
,
lppsh
->
pfnCallback
);
lppsh
->
dwSize
,
lppsh
->
dwFlags
,
lppsh
->
hwndParent
,
lppsh
->
hInstance
,
debugstr_w
(
lppsh
->
pszCaption
),
lppsh
->
nPages
,
lppsh
->
pfnCallback
);
PROPSHEET_UnImplementedFlags
(
lppsh
->
dwFlags
);
PROPSHEET_UnImplementedFlags
(
lppsh
->
dwFlags
);
...
@@ -707,7 +707,7 @@ static BOOL PROPSHEET_SizeMismatch(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -707,7 +707,7 @@ static BOOL PROPSHEET_SizeMismatch(HWND hwndDlg, PropSheetInfo* psInfo)
* Original tab size.
* Original tab size.
*/
*/
GetClientRect
(
hwndTabCtrl
,
&
rcOrigTab
);
GetClientRect
(
hwndTabCtrl
,
&
rcOrigTab
);
TRACE
(
"orig tab %
ld %ld %ld %l
d
\n
"
,
rcOrigTab
.
left
,
rcOrigTab
.
top
,
TRACE
(
"orig tab %
d %d %d %
d
\n
"
,
rcOrigTab
.
left
,
rcOrigTab
.
top
,
rcOrigTab
.
right
,
rcOrigTab
.
bottom
);
rcOrigTab
.
right
,
rcOrigTab
.
bottom
);
/*
/*
...
@@ -719,7 +719,7 @@ static BOOL PROPSHEET_SizeMismatch(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -719,7 +719,7 @@ static BOOL PROPSHEET_SizeMismatch(HWND hwndDlg, PropSheetInfo* psInfo)
rcPage
.
bottom
=
psInfo
->
height
;
rcPage
.
bottom
=
psInfo
->
height
;
MapDialogRect
(
hwndDlg
,
&
rcPage
);
MapDialogRect
(
hwndDlg
,
&
rcPage
);
TRACE
(
"biggest page %
ld %ld %ld %l
d
\n
"
,
rcPage
.
left
,
rcPage
.
top
,
TRACE
(
"biggest page %
d %d %d %
d
\n
"
,
rcPage
.
left
,
rcPage
.
top
,
rcPage
.
right
,
rcPage
.
bottom
);
rcPage
.
right
,
rcPage
.
bottom
);
if
(
(
rcPage
.
right
-
rcPage
.
left
)
!=
(
rcOrigTab
.
right
-
rcOrigTab
.
left
)
)
if
(
(
rcPage
.
right
-
rcPage
.
left
)
!=
(
rcOrigTab
.
right
-
rcOrigTab
.
left
)
)
...
@@ -789,14 +789,14 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -789,14 +789,14 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
rc
.
right
-=
rc
.
left
;
rc
.
right
-=
rc
.
left
;
rc
.
bottom
-=
rc
.
top
;
rc
.
bottom
-=
rc
.
top
;
TRACE
(
"setting tab %p, rc (0,0)-(%
ld,%l
d)
\n
"
,
TRACE
(
"setting tab %p, rc (0,0)-(%
d,%
d)
\n
"
,
hwndTabCtrl
,
rc
.
right
,
rc
.
bottom
);
hwndTabCtrl
,
rc
.
right
,
rc
.
bottom
);
SetWindowPos
(
hwndTabCtrl
,
0
,
0
,
0
,
rc
.
right
,
rc
.
bottom
,
SetWindowPos
(
hwndTabCtrl
,
0
,
0
,
0
,
rc
.
right
,
rc
.
bottom
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
GetClientRect
(
hwndTabCtrl
,
&
rc
);
GetClientRect
(
hwndTabCtrl
,
&
rc
);
TRACE
(
"tab client rc %
ld %ld %ld %l
d
\n
"
,
TRACE
(
"tab client rc %
d %d %d %
d
\n
"
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
rc
.
right
+=
((
padding
.
x
*
2
)
+
tabOffsetX
);
rc
.
right
+=
((
padding
.
x
*
2
)
+
tabOffsetX
);
...
@@ -805,7 +805,7 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -805,7 +805,7 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
/*
/*
* Resize the property sheet.
* Resize the property sheet.
*/
*/
TRACE
(
"setting dialog %p, rc (0,0)-(%
ld,%l
d)
\n
"
,
TRACE
(
"setting dialog %p, rc (0,0)-(%
d,%
d)
\n
"
,
hwndDlg
,
rc
.
right
,
rc
.
bottom
);
hwndDlg
,
rc
.
right
,
rc
.
bottom
);
SetWindowPos
(
hwndDlg
,
0
,
0
,
0
,
rc
.
right
,
rc
.
bottom
,
SetWindowPos
(
hwndDlg
,
0
,
0
,
0
,
rc
.
right
,
rc
.
bottom
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
...
@@ -829,7 +829,7 @@ static BOOL PROPSHEET_AdjustSizeWizard(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -829,7 +829,7 @@ static BOOL PROPSHEET_AdjustSizeWizard(HWND hwndDlg, PropSheetInfo* psInfo)
rc
.
bottom
=
psInfo
->
height
;
rc
.
bottom
=
psInfo
->
height
;
MapDialogRect
(
hwndDlg
,
&
rc
);
MapDialogRect
(
hwndDlg
,
&
rc
);
TRACE
(
"Biggest page %
ld %ld %ld %l
d
\n
"
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
TRACE
(
"Biggest page %
d %d %d %
d
\n
"
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
/* Add space for the buttons row */
/* Add space for the buttons row */
GetWindowRect
(
hwndLine
,
&
lineRect
);
GetWindowRect
(
hwndLine
,
&
lineRect
);
...
@@ -841,7 +841,7 @@ static BOOL PROPSHEET_AdjustSizeWizard(HWND hwndDlg, PropSheetInfo* psInfo)
...
@@ -841,7 +841,7 @@ static BOOL PROPSHEET_AdjustSizeWizard(HWND hwndDlg, PropSheetInfo* psInfo)
AdjustWindowRect
(
&
rc
,
GetWindowLongW
(
hwndDlg
,
GWL_STYLE
),
FALSE
);
AdjustWindowRect
(
&
rc
,
GetWindowLongW
(
hwndDlg
,
GWL_STYLE
),
FALSE
);
/* Resize the property sheet */
/* Resize the property sheet */
TRACE
(
"setting dialog %p, rc (0,0)-(%
ld,%l
d)
\n
"
,
TRACE
(
"setting dialog %p, rc (0,0)-(%
d,%
d)
\n
"
,
hwndDlg
,
rc
.
right
,
rc
.
bottom
);
hwndDlg
,
rc
.
right
,
rc
.
bottom
);
SetWindowPos
(
hwndDlg
,
0
,
0
,
0
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
SetWindowPos
(
hwndDlg
,
0
,
0
,
0
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
...
@@ -1336,7 +1336,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
...
@@ -1336,7 +1336,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
p
++
;
p
++
;
break
;
break
;
case
0xffff
:
case
0xffff
:
TRACE
(
"class ordinal 0x%08l
x
\n
"
,
*
(
DWORD
*
)
p
);
TRACE
(
"class ordinal 0x%08
x
\n
"
,
*
(
DWORD
*
)
p
);
p
+=
2
;
p
+=
2
;
break
;
break
;
default:
default:
...
@@ -1352,7 +1352,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
...
@@ -1352,7 +1352,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
p
++
;
p
++
;
break
;
break
;
case
0xffff
:
case
0xffff
:
TRACE
(
"text ordinal 0x%08l
x
\n
"
,
*
(
DWORD
*
)
p
);
TRACE
(
"text ordinal 0x%08
x
\n
"
,
*
(
DWORD
*
)
p
);
p
+=
2
;
p
+=
2
;
break
;
break
;
default:
default:
...
@@ -1444,7 +1444,7 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
...
@@ -1444,7 +1444,7 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
if
(
!
temp
)
if
(
!
temp
)
return
FALSE
;
return
FALSE
;
TRACE
(
"copying pTemplate %p into temp %p (%
l
d)
\n
"
,
pTemplate
,
temp
,
resSize
);
TRACE
(
"copying pTemplate %p into temp %p (%d)
\n
"
,
pTemplate
,
temp
,
resSize
);
memcpy
(
temp
,
pTemplate
,
resSize
);
memcpy
(
temp
,
pTemplate
,
resSize
);
pTemplate
=
temp
;
pTemplate
=
temp
;
...
@@ -2044,7 +2044,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
...
@@ -2044,7 +2044,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
* NOTE: The resizing happens every time the page is selected and
* NOTE: The resizing happens every time the page is selected and
* not only when it's created (some applications depend on it). */
* not only when it's created (some applications depend on it). */
PROPSHEET_GetPageRect
(
psInfo
,
hwndDlg
,
&
rc
,
ppshpage
);
PROPSHEET_GetPageRect
(
psInfo
,
hwndDlg
,
&
rc
,
ppshpage
);
TRACE
(
"setting page %p, rc (%
ld,%ld)-(%ld,%ld) w=%ld, h=%l
d
\n
"
,
TRACE
(
"setting page %p, rc (%
d,%d)-(%d,%d) w=%d, h=%
d
\n
"
,
psInfo
->
proppage
[
index
].
hwndPage
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
psInfo
->
proppage
[
index
].
hwndPage
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
);
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
);
SetWindowPos
(
psInfo
->
proppage
[
index
].
hwndPage
,
HWND_TOP
,
SetWindowPos
(
psInfo
->
proppage
[
index
].
hwndPage
,
HWND_TOP
,
...
@@ -2152,7 +2152,7 @@ static void PROPSHEET_SetTitleW(HWND hwndDlg, DWORD dwStyle, LPCWSTR lpszText)
...
@@ -2152,7 +2152,7 @@ static void PROPSHEET_SetTitleW(HWND hwndDlg, DWORD dwStyle, LPCWSTR lpszText)
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
WCHAR
szTitle
[
256
];
WCHAR
szTitle
[
256
];
TRACE
(
"'%s' (style %08
l
x)
\n
"
,
debugstr_w
(
lpszText
),
dwStyle
);
TRACE
(
"'%s' (style %08x)
\n
"
,
debugstr_w
(
lpszText
),
dwStyle
);
if
(
HIWORD
(
lpszText
)
==
0
)
{
if
(
HIWORD
(
lpszText
)
==
0
)
{
if
(
!
LoadStringW
(
psInfo
->
ppshheader
.
hInstance
,
if
(
!
LoadStringW
(
psInfo
->
ppshheader
.
hInstance
,
LOWORD
(
lpszText
),
szTitle
,
sizeof
(
szTitle
)
-
sizeof
(
WCHAR
)))
LOWORD
(
lpszText
),
szTitle
,
sizeof
(
szTitle
)
-
sizeof
(
WCHAR
)))
...
@@ -2442,7 +2442,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
...
@@ -2442,7 +2442,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
HWND
hwndNext
=
GetDlgItem
(
hwndDlg
,
IDC_NEXT_BUTTON
);
HWND
hwndNext
=
GetDlgItem
(
hwndDlg
,
IDC_NEXT_BUTTON
);
HWND
hwndFinish
=
GetDlgItem
(
hwndDlg
,
IDC_FINISH_BUTTON
);
HWND
hwndFinish
=
GetDlgItem
(
hwndDlg
,
IDC_FINISH_BUTTON
);
TRACE
(
"%
l
d
\n
"
,
dwFlags
);
TRACE
(
"%d
\n
"
,
dwFlags
);
EnableWindow
(
hwndBack
,
FALSE
);
EnableWindow
(
hwndBack
,
FALSE
);
EnableWindow
(
hwndNext
,
FALSE
);
EnableWindow
(
hwndNext
,
FALSE
);
...
...
dlls/comctl32/rebar.c
View file @
1c16d833
This diff is collapsed.
Click to expand it.
dlls/comctl32/smoothscroll.c
View file @
1c16d833
...
@@ -112,7 +112,7 @@ BOOL WINAPI SmoothScrollWindow( SMOOTHSCROLLSTRUCT *smooth ) {
...
@@ -112,7 +112,7 @@ BOOL WINAPI SmoothScrollWindow( SMOOTHSCROLLSTRUCT *smooth ) {
);
);
}
}
FIXME
(
"(hwnd=%p,flags=%
lx,x2=%l
x): should smooth scroll here.
\n
"
,
FIXME
(
"(hwnd=%p,flags=%
x,x2=%
x): should smooth scroll here.
\n
"
,
smooth
->
hwnd
,
flags
,
smooth
->
x2
smooth
->
hwnd
,
flags
,
smooth
->
x2
);
);
/* FIXME: do timer based smooth scrolling */
/* FIXME: do timer based smooth scrolling */
...
...
dlls/comctl32/status.c
View file @
1c16d833
...
@@ -114,7 +114,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
...
@@ -114,7 +114,7 @@ STATUSBAR_DrawSizeGrip (HTHEME theme, HDC hdc, LPRECT lpRect)
POINT
pt
;
POINT
pt
;
INT
i
;
INT
i
;
TRACE
(
"draw size grip %
ld,%ld - %ld,%l
d
\n
"
,
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
right
,
lpRect
->
bottom
);
TRACE
(
"draw size grip %
d,%d - %d,%
d
\n
"
,
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
right
,
lpRect
->
bottom
);
if
(
theme
)
if
(
theme
)
{
{
...
@@ -175,7 +175,7 @@ STATUSBAR_DrawPart (STATUS_INFO *infoPtr, HDC hdc, STATUSWINDOWPART *part, int i
...
@@ -175,7 +175,7 @@ STATUSBAR_DrawPart (STATUS_INFO *infoPtr, HDC hdc, STATUSWINDOWPART *part, int i
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
Self
);
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
Self
);
int
themePart
=
SP_PANE
;
int
themePart
=
SP_PANE
;
TRACE
(
"part bound %
ld,%ld - %ld,%l
d
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
TRACE
(
"part bound %
d,%d - %d,%
d
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
if
(
part
->
style
&
SBT_POPOUT
)
if
(
part
->
style
&
SBT_POPOUT
)
border
=
BDR_RAISEDOUTER
;
border
=
BDR_RAISEDOUTER
;
else
if
(
part
->
style
&
SBT_NOBORDERS
)
else
if
(
part
->
style
&
SBT_NOBORDERS
)
...
@@ -319,7 +319,7 @@ STATUSBAR_SetPartBounds (STATUS_INFO *infoPtr)
...
@@ -319,7 +319,7 @@ STATUSBAR_SetPartBounds (STATUS_INFO *infoPtr)
/* get our window size */
/* get our window size */
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
TRACE
(
"client wnd size is %
ld,%ld - %ld,%l
d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
TRACE
(
"client wnd size is %
d,%d - %d,%
d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
rect
.
left
+=
infoPtr
->
horizontalBorder
;
rect
.
left
+=
infoPtr
->
horizontalBorder
;
rect
.
top
+=
infoPtr
->
verticalBorder
;
rect
.
top
+=
infoPtr
->
verticalBorder
;
...
@@ -575,7 +575,7 @@ STATUSBAR_SetBkColor (STATUS_INFO *infoPtr, COLORREF color)
...
@@ -575,7 +575,7 @@ STATUSBAR_SetBkColor (STATUS_INFO *infoPtr, COLORREF color)
infoPtr
->
clrBk
=
color
;
infoPtr
->
clrBk
=
color
;
InvalidateRect
(
infoPtr
->
Self
,
NULL
,
FALSE
);
InvalidateRect
(
infoPtr
->
Self
,
NULL
,
FALSE
);
TRACE
(
"CREF: %08
lx -> %08l
x
\n
"
,
oldBkColor
,
infoPtr
->
clrBk
);
TRACE
(
"CREF: %08
x -> %08
x
\n
"
,
oldBkColor
,
infoPtr
->
clrBk
);
return
oldBkColor
;
return
oldBkColor
;
}
}
...
...
dlls/comctl32/tab.c
View file @
1c16d833
...
@@ -203,7 +203,7 @@ static void
...
@@ -203,7 +203,7 @@ static void
TAB_DumpItemExternalT
(
TCITEMW
*
pti
,
UINT
iItem
,
BOOL
isW
)
TAB_DumpItemExternalT
(
TCITEMW
*
pti
,
UINT
iItem
,
BOOL
isW
)
{
{
if
(
TRACE_ON
(
tab
))
{
if
(
TRACE_ON
(
tab
))
{
TRACE
(
"external tab %d, mask=0x%08x, dwState=0x%08
lx, dwStateMask=0x%08l
x, cchTextMax=0x%08x
\n
"
,
TRACE
(
"external tab %d, mask=0x%08x, dwState=0x%08
x, dwStateMask=0x%08
x, cchTextMax=0x%08x
\n
"
,
iItem
,
pti
->
mask
,
pti
->
dwState
,
pti
->
dwStateMask
,
pti
->
cchTextMax
);
iItem
,
pti
->
mask
,
pti
->
dwState
,
pti
->
dwStateMask
,
pti
->
cchTextMax
);
TRACE
(
"external tab %d, iImage=%d, lParam=0x%08lx, pszTextW=%s
\n
"
,
TRACE
(
"external tab %d, iImage=%d, lParam=0x%08lx, pszTextW=%s
\n
"
,
iItem
,
pti
->
iImage
,
pti
->
lParam
,
isW
?
debugstr_w
(
pti
->
pszText
)
:
debugstr_a
((
LPSTR
)
pti
->
pszText
));
iItem
,
pti
->
iImage
,
pti
->
lParam
,
isW
?
debugstr_w
(
pti
->
pszText
)
:
debugstr_a
((
LPSTR
)
pti
->
pszText
));
...
@@ -217,10 +217,10 @@ TAB_DumpItemInternal(TAB_INFO *infoPtr, UINT iItem)
...
@@ -217,10 +217,10 @@ TAB_DumpItemInternal(TAB_INFO *infoPtr, UINT iItem)
TAB_ITEM
*
ti
;
TAB_ITEM
*
ti
;
ti
=
TAB_GetItem
(
infoPtr
,
iItem
);
ti
=
TAB_GetItem
(
infoPtr
,
iItem
);
TRACE
(
"tab %d, mask=0x%08x, dwState=0x%08
l
x, pszText=%s, iImage=%d
\n
"
,
TRACE
(
"tab %d, mask=0x%08x, dwState=0x%08x, pszText=%s, iImage=%d
\n
"
,
iItem
,
ti
->
mask
,
ti
->
dwState
,
debugstr_w
(
ti
->
pszText
),
iItem
,
ti
->
mask
,
ti
->
dwState
,
debugstr_w
(
ti
->
pszText
),
ti
->
iImage
);
ti
->
iImage
);
TRACE
(
"tab %d, rect.left=%
ld, rect.top(row)=%l
d
\n
"
,
TRACE
(
"tab %d, rect.left=%
d, rect.top(row)=%
d
\n
"
,
iItem
,
ti
->
rect
.
left
,
ti
->
rect
.
top
);
iItem
,
ti
->
rect
.
left
,
ti
->
rect
.
top
);
}
}
}
}
...
@@ -419,7 +419,7 @@ static BOOL TAB_InternalGetItemRect(
...
@@ -419,7 +419,7 @@ static BOOL TAB_InternalGetItemRect(
SELECTED_TAB_OFFSET
,
SELECTED_TAB_OFFSET
,
0
);
0
);
}
}
TRACE
(
"item %d tab h=%d, rect=(%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"item %d tab h=%d, rect=(%
d,%d)-(%d,%
d)
\n
"
,
itemIndex
,
infoPtr
->
tabHeight
,
itemIndex
,
infoPtr
->
tabHeight
,
itemRect
->
left
,
itemRect
->
top
,
itemRect
->
right
,
itemRect
->
bottom
);
itemRect
->
left
,
itemRect
->
top
,
itemRect
->
right
,
itemRect
->
bottom
);
...
@@ -534,7 +534,7 @@ static void TAB_FocusChanging(const TAB_INFO *infoPtr)
...
@@ -534,7 +534,7 @@ static void TAB_FocusChanging(const TAB_INFO *infoPtr)
*/
*/
if
(
isVisible
)
if
(
isVisible
)
{
{
TRACE
(
"invalidate (%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"invalidate (%
d,%d)-(%d,%
d)
\n
"
,
selectedRect
.
left
,
selectedRect
.
top
,
selectedRect
.
left
,
selectedRect
.
top
,
selectedRect
.
right
,
selectedRect
.
bottom
);
selectedRect
.
right
,
selectedRect
.
bottom
);
InvalidateRect
(
infoPtr
->
hwnd
,
&
selectedRect
,
TRUE
);
InvalidateRect
(
infoPtr
->
hwnd
,
&
selectedRect
,
TRUE
);
...
@@ -876,7 +876,7 @@ static LRESULT TAB_AdjustRect(
...
@@ -876,7 +876,7 @@ static LRESULT TAB_AdjustRect(
DWORD
lStyle
=
GetWindowLongW
(
infoPtr
->
hwnd
,
GWL_STYLE
);
DWORD
lStyle
=
GetWindowLongW
(
infoPtr
->
hwnd
,
GWL_STYLE
);
LONG
*
iRightBottom
,
*
iLeftTop
;
LONG
*
iRightBottom
,
*
iLeftTop
;
TRACE
(
"hwnd=%p fLarger=%d (%
ld,%ld)-(%ld,%l
d)
\n
"
,
infoPtr
->
hwnd
,
fLarger
,
prc
->
left
,
prc
->
top
,
prc
->
right
,
prc
->
bottom
);
TRACE
(
"hwnd=%p fLarger=%d (%
d,%d)-(%d,%
d)
\n
"
,
infoPtr
->
hwnd
,
fLarger
,
prc
->
left
,
prc
->
top
,
prc
->
right
,
prc
->
bottom
);
if
(
lStyle
&
TCS_VERTICAL
)
if
(
lStyle
&
TCS_VERTICAL
)
{
{
...
@@ -1145,11 +1145,11 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1145,11 +1145,11 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
((
lStyle
&
TCS_BUTTONS
)
?
2
:
1
)
*
((
lStyle
&
TCS_BUTTONS
)
?
2
:
1
)
*
infoPtr
->
uVItemPadding
;
infoPtr
->
uVItemPadding
;
TRACE
(
"tabH=%d, tmH=%
l
d, iconh=%d
\n
"
,
TRACE
(
"tabH=%d, tmH=%d, iconh=%d
\n
"
,
infoPtr
->
tabHeight
,
fontMetrics
.
tmHeight
,
icon_height
);
infoPtr
->
tabHeight
,
fontMetrics
.
tmHeight
,
icon_height
);
}
}
TRACE
(
"client right=%
l
d
\n
"
,
clientRect
.
right
);
TRACE
(
"client right=%d
\n
"
,
clientRect
.
right
);
/* Get the icon width */
/* Get the icon width */
if
(
infoPtr
->
himl
)
if
(
infoPtr
->
himl
)
...
@@ -1206,7 +1206,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1206,7 +1206,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
tabwidth
=
max
(
tabwidth
,
infoPtr
->
tabMinWidth
);
tabwidth
=
max
(
tabwidth
,
infoPtr
->
tabMinWidth
);
curr
->
rect
.
right
=
curr
->
rect
.
left
+
tabwidth
;
curr
->
rect
.
right
=
curr
->
rect
.
left
+
tabwidth
;
TRACE
(
"for <%s>, l,r=%
ld,%l
d
\n
"
,
TRACE
(
"for <%s>, l,r=%
d,%
d
\n
"
,
debugstr_w
(
curr
->
pszText
),
curr
->
rect
.
left
,
curr
->
rect
.
right
);
debugstr_w
(
curr
->
pszText
),
curr
->
rect
.
left
,
curr
->
rect
.
right
);
}
}
...
@@ -1226,14 +1226,14 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1226,14 +1226,14 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
curr
->
rect
.
left
=
0
;
curr
->
rect
.
left
=
0
;
curItemRowCount
++
;
curItemRowCount
++
;
TRACE
(
"wrapping <%s>, l,r=%
ld,%l
d
\n
"
,
debugstr_w
(
curr
->
pszText
),
TRACE
(
"wrapping <%s>, l,r=%
d,%
d
\n
"
,
debugstr_w
(
curr
->
pszText
),
curr
->
rect
.
left
,
curr
->
rect
.
right
);
curr
->
rect
.
left
,
curr
->
rect
.
right
);
}
}
curr
->
rect
.
bottom
=
0
;
curr
->
rect
.
bottom
=
0
;
curr
->
rect
.
top
=
curItemRowCount
-
1
;
curr
->
rect
.
top
=
curItemRowCount
-
1
;
TRACE
(
"Rect: T %
li, L %li, B %li, R %l
i
\n
"
,
curr
->
rect
.
top
,
TRACE
(
"Rect: T %
i, L %i, B %i, R %
i
\n
"
,
curr
->
rect
.
top
,
curr
->
rect
.
left
,
curr
->
rect
.
bottom
,
curr
->
rect
.
right
);
curr
->
rect
.
left
,
curr
->
rect
.
bottom
,
curr
->
rect
.
right
);
/*
/*
...
@@ -1304,7 +1304,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1304,7 +1304,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
curr
->
rect
.
right
-=
curr
->
rect
.
left
;
curr
->
rect
.
right
-=
curr
->
rect
.
left
;
curr
->
rect
.
left
=
0
;
curr
->
rect
.
left
=
0
;
TRACE
(
"r=%ld, cl=%d, cl.r=%l
d, iCount=%d, iRow=%d, uNumRows=%d, remTab=%d, tabPerRow=%d
\n
"
,
TRACE
(
"r=%d, cl=%d, cl.r=%
d, iCount=%d, iRow=%d, uNumRows=%d, remTab=%d, tabPerRow=%d
\n
"
,
curr
->
rect
.
right
,
curItemLeftPos
,
clientRect
.
right
,
curr
->
rect
.
right
,
curItemLeftPos
,
clientRect
.
right
,
iCount
,
iRow
,
infoPtr
->
uNumRows
,
remTab
,
tabPerRow
);
iCount
,
iRow
,
infoPtr
->
uNumRows
,
remTab
,
tabPerRow
);
...
@@ -1341,7 +1341,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1341,7 +1341,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
else
else
curItemLeftPos
=
curr
->
rect
.
right
;
curItemLeftPos
=
curr
->
rect
.
right
;
TRACE
(
"arranging <%s>, l,r=%ld,%ld, row=%l
d
\n
"
,
TRACE
(
"arranging <%s>, l,r=%d,%d, row=%
d
\n
"
,
debugstr_w
(
curr
->
pszText
),
curr
->
rect
.
left
,
debugstr_w
(
curr
->
pszText
),
curr
->
rect
.
left
,
curr
->
rect
.
right
,
curr
->
rect
.
top
);
curr
->
rect
.
right
,
curr
->
rect
.
top
);
}
}
...
@@ -1393,7 +1393,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1393,7 +1393,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
item
->
rect
.
left
+=
iCount
*
widthDiff
;
item
->
rect
.
left
+=
iCount
*
widthDiff
;
item
->
rect
.
right
+=
(
iCount
+
1
)
*
widthDiff
;
item
->
rect
.
right
+=
(
iCount
+
1
)
*
widthDiff
;
TRACE
(
"adjusting 1 <%s>, l,r=%ld,%l
d
\n
"
,
TRACE
(
"adjusting 1 <%s>, l,r=%d,%
d
\n
"
,
debugstr_w
(
item
->
pszText
),
debugstr_w
(
item
->
pszText
),
item
->
rect
.
left
,
item
->
rect
.
right
);
item
->
rect
.
left
,
item
->
rect
.
right
);
...
@@ -1405,7 +1405,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
...
@@ -1405,7 +1405,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
start
->
rect
.
left
=
clientRect
.
left
;
start
->
rect
.
left
=
clientRect
.
left
;
start
->
rect
.
right
=
clientRect
.
right
-
4
;
start
->
rect
.
right
=
clientRect
.
right
-
4
;
TRACE
(
"adjusting 2 <%s>, l,r=%ld,%l
d
\n
"
,
TRACE
(
"adjusting 2 <%s>, l,r=%d,%
d
\n
"
,
debugstr_w
(
start
->
pszText
),
debugstr_w
(
start
->
pszText
),
start
->
rect
.
left
,
start
->
rect
.
right
);
start
->
rect
.
left
,
start
->
rect
.
right
);
...
@@ -1626,7 +1626,7 @@ TAB_DrawItemInterior
...
@@ -1626,7 +1626,7 @@ TAB_DrawItemInterior
}
}
}
}
}
}
TRACE
(
"drawRect=(%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"drawRect=(%
d,%d)-(%d,%
d)
\n
"
,
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
);
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
);
/* Clear interior */
/* Clear interior */
...
@@ -1770,7 +1770,7 @@ TAB_DrawItemInterior
...
@@ -1770,7 +1770,7 @@ TAB_DrawItemInterior
if
(
center_offset_v
<
0
)
if
(
center_offset_v
<
0
)
center_offset_v
=
0
;
center_offset_v
=
0
;
TRACE
(
"for <%s>, c_o_h=%d, c_o_v=%d, draw=(%
ld,%ld)-(%ld,%ld), textlen=%l
d
\n
"
,
TRACE
(
"for <%s>, c_o_h=%d, c_o_v=%d, draw=(%
d,%d)-(%d,%d), textlen=%
d
\n
"
,
debugstr_w
(
item
->
pszText
),
center_offset_h
,
center_offset_v
,
debugstr_w
(
item
->
pszText
),
center_offset_h
,
center_offset_v
,
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
,
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
,
(
rcText
.
right
-
rcText
.
left
));
(
rcText
.
right
-
rcText
.
left
));
...
@@ -1797,7 +1797,7 @@ TAB_DrawItemInterior
...
@@ -1797,7 +1797,7 @@ TAB_DrawItemInterior
drawRect
->
left
+=
cx
+
infoPtr
->
uHItemPadding
;
drawRect
->
left
+=
cx
+
infoPtr
->
uHItemPadding
;
}
}
TRACE
(
"drawing image=%d, left=%
ld, top=%l
d
\n
"
,
TRACE
(
"drawing image=%d, left=%
d, top=%
d
\n
"
,
item
->
iImage
,
rcImage
.
left
,
rcImage
.
top
-
1
);
item
->
iImage
,
rcImage
.
left
,
rcImage
.
top
-
1
);
ImageList_Draw
ImageList_Draw
(
(
...
@@ -1901,7 +1901,7 @@ TAB_DrawItemInterior
...
@@ -1901,7 +1901,7 @@ TAB_DrawItemInterior
}
}
else
else
{
{
TRACE
(
"for <%s>, c_o_h=%d, c_o_v=%d, draw=(%
ld,%ld)-(%ld,%ld), textlen=%l
d
\n
"
,
TRACE
(
"for <%s>, c_o_h=%d, c_o_v=%d, draw=(%
d,%d)-(%d,%d), textlen=%
d
\n
"
,
debugstr_w
(
item
->
pszText
),
center_offset_h
,
center_offset_v
,
debugstr_w
(
item
->
pszText
),
center_offset_h
,
center_offset_v
,
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
,
drawRect
->
left
,
drawRect
->
top
,
drawRect
->
right
,
drawRect
->
bottom
,
(
rcText
.
right
-
rcText
.
left
));
(
rcText
.
right
-
rcText
.
left
));
...
@@ -2092,7 +2092,7 @@ static void TAB_DrawItem(
...
@@ -2092,7 +2092,7 @@ static void TAB_DrawItem(
/* Adjust both rectangles to match native */
/* Adjust both rectangles to match native */
r
.
left
+=
(
1
-
ZZ
);
r
.
left
+=
(
1
-
ZZ
);
TRACE
(
"<right> item=%d, fill=(%ld,%ld)-(%ld,%ld), edge=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"<right> item=%d, fill=(%d,%d)-(%d,%d), edge=(%d,%d)-(%d,%
d)
\n
"
,
iItem
,
iItem
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
...
@@ -2133,7 +2133,7 @@ static void TAB_DrawItem(
...
@@ -2133,7 +2133,7 @@ static void TAB_DrawItem(
}
}
else
else
{
{
TRACE
(
"<left> item=%d, fill=(%ld,%ld)-(%ld,%ld), edge=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"<left> item=%d, fill=(%d,%d)-(%d,%d), edge=(%d,%d)-(%d,%
d)
\n
"
,
iItem
,
iItem
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
...
@@ -2187,7 +2187,7 @@ static void TAB_DrawItem(
...
@@ -2187,7 +2187,7 @@ static void TAB_DrawItem(
r
.
top
-=
1
;
r
.
top
-=
1
;
}
}
TRACE
(
"<bottom> item=%d, fill=(%ld,%ld)-(%ld,%ld), edge=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"<bottom> item=%d, fill=(%d,%d)-(%d,%d), edge=(%d,%d)-(%d,%
d)
\n
"
,
iItem
,
iItem
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
...
@@ -2241,7 +2241,7 @@ static void TAB_DrawItem(
...
@@ -2241,7 +2241,7 @@ static void TAB_DrawItem(
r
.
bottom
+=
2
;
r
.
bottom
+=
2
;
}
}
TRACE
(
"<top> item=%d, fill=(%ld,%ld)-(%ld,%ld), edge=(%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"<top> item=%d, fill=(%d,%d)-(%d,%d), edge=(%d,%d)-(%d,%
d)
\n
"
,
iItem
,
iItem
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
fillRect
.
left
,
fillRect
.
top
,
fillRect
.
right
,
fillRect
.
bottom
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
...
@@ -2312,7 +2312,7 @@ static void TAB_DrawBorder (TAB_INFO *infoPtr, HDC hdc)
...
@@ -2312,7 +2312,7 @@ static void TAB_DrawBorder (TAB_INFO *infoPtr, HDC hdc)
rect
.
top
+=
infoPtr
->
tabHeight
*
infoPtr
->
uNumRows
+
CONTROL_BORDER_SIZEX
;
rect
.
top
+=
infoPtr
->
tabHeight
*
infoPtr
->
uNumRows
+
CONTROL_BORDER_SIZEX
;
}
}
TRACE
(
"border=(%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"border=(%
d,%d)-(%d,%
d)
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
if
(
theme
)
if
(
theme
)
...
@@ -2554,7 +2554,7 @@ static void TAB_InvalidateTabArea(TAB_INFO* infoPtr)
...
@@ -2554,7 +2554,7 @@ static void TAB_InvalidateTabArea(TAB_INFO* infoPtr)
rInvalidate
.
right
=
clientRect
.
right
-
r
.
left
;
rInvalidate
.
right
=
clientRect
.
right
-
r
.
left
;
}
}
TRACE
(
"invalidate (%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"invalidate (%
d,%d)-(%d,%
d)
\n
"
,
rInvalidate
.
left
,
rInvalidate
.
top
,
rInvalidate
.
left
,
rInvalidate
.
top
,
rInvalidate
.
right
,
rInvalidate
.
bottom
);
rInvalidate
.
right
,
rInvalidate
.
bottom
);
...
@@ -2571,7 +2571,7 @@ static inline LRESULT TAB_Paint (TAB_INFO *infoPtr, HDC hdcPaint)
...
@@ -2571,7 +2571,7 @@ static inline LRESULT TAB_Paint (TAB_INFO *infoPtr, HDC hdcPaint)
else
else
{
{
hdc
=
BeginPaint
(
infoPtr
->
hwnd
,
&
ps
);
hdc
=
BeginPaint
(
infoPtr
->
hwnd
,
&
ps
);
TRACE
(
"erase %d, rect=(%
ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"erase %d, rect=(%
d,%d)-(%d,%
d)
\n
"
,
ps
.
fErase
,
ps
.
fErase
,
ps
.
rcPaint
.
left
,
ps
.
rcPaint
.
top
,
ps
.
rcPaint
.
right
,
ps
.
rcPaint
.
bottom
);
ps
.
rcPaint
.
left
,
ps
.
rcPaint
.
top
,
ps
.
rcPaint
.
right
,
ps
.
rcPaint
.
bottom
);
}
}
...
@@ -2593,7 +2593,7 @@ TAB_InsertItemT (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnicode)
...
@@ -2593,7 +2593,7 @@ TAB_InsertItemT (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnicode)
RECT
rect
;
RECT
rect
;
GetClientRect
(
infoPtr
->
hwnd
,
&
rect
);
GetClientRect
(
infoPtr
->
hwnd
,
&
rect
);
TRACE
(
"Rect: %p T %
li, L %li, B %li, R %l
i
\n
"
,
infoPtr
->
hwnd
,
TRACE
(
"Rect: %p T %
i, L %i, B %i, R %
i
\n
"
,
infoPtr
->
hwnd
,
rect
.
top
,
rect
.
left
,
rect
.
bottom
,
rect
.
right
);
rect
.
top
,
rect
.
left
,
rect
.
bottom
,
rect
.
right
);
pti
=
(
TCITEMW
*
)
lParam
;
pti
=
(
TCITEMW
*
)
lParam
;
...
...
dlls/comctl32/theming.c
View file @
1c16d833
...
@@ -138,7 +138,7 @@ void THEMING_Initialize (void)
...
@@ -138,7 +138,7 @@ void THEMING_Initialize (void)
if
(
!
RegisterClassExW
(
&
class
))
if
(
!
RegisterClassExW
(
&
class
))
{
{
ERR
(
"Could not re-register class %s: %
lx
\n
"
,
ERR
(
"Could not re-register class %s: %
x
\n
"
,
debugstr_w
(
subclasses
[
i
].
className
),
GetLastError
());
debugstr_w
(
subclasses
[
i
].
className
),
GetLastError
());
}
}
else
else
...
...
dlls/comctl32/toolbar.c
View file @
1c16d833
This diff is collapsed.
Click to expand it.
dlls/comctl32/tooltips.c
View file @
1c16d833
...
@@ -530,7 +530,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -530,7 +530,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TRACE
(
"size %
ld x %l
d
\n
"
,
size
.
cx
,
size
.
cy
);
TRACE
(
"size %
d x %
d
\n
"
,
size
.
cx
,
size
.
cy
);
if
(
toolPtr
->
uFlags
&
TTF_CENTERTIP
)
{
if
(
toolPtr
->
uFlags
&
TTF_CENTERTIP
)
{
RECT
rc
;
RECT
rc
;
...
@@ -587,7 +587,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -587,7 +587,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
}
}
}
}
TRACE
(
"pos %
ld - %l
d
\n
"
,
rect
.
left
,
rect
.
top
);
TRACE
(
"pos %
d - %
d
\n
"
,
rect
.
left
,
rect
.
top
);
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
...
@@ -744,7 +744,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -744,7 +744,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
infoPtr
->
szTipText
));
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TRACE
(
"size %
ld x %l
d
\n
"
,
size
.
cx
,
size
.
cy
);
TRACE
(
"size %
d x %
d
\n
"
,
size
.
cx
,
size
.
cy
);
if
(
toolPtr
->
uFlags
&
TTF_ABSOLUTE
)
{
if
(
toolPtr
->
uFlags
&
TTF_ABSOLUTE
)
{
rect
.
left
=
infoPtr
->
xTrackPos
;
rect
.
left
=
infoPtr
->
xTrackPos
;
...
@@ -779,7 +779,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
...
@@ -779,7 +779,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
rect
.
left
=
rcTool
.
right
;
rect
.
left
=
rcTool
.
right
;
}
}
TRACE
(
"pos %
ld - %l
d
\n
"
,
rect
.
left
,
rect
.
top
);
TRACE
(
"pos %
d - %
d
\n
"
,
rect
.
left
,
rect
.
top
);
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
right
=
rect
.
left
+
size
.
cx
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
rect
.
bottom
=
rect
.
top
+
size
.
cy
;
...
@@ -1364,7 +1364,7 @@ TOOLTIPS_GetBubbleSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1364,7 +1364,7 @@ TOOLTIPS_GetBubbleSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
TRACE
(
"tool %d
\n
"
,
nTool
);
TRACE
(
"tool %d
\n
"
,
nTool
);
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TOOLTIPS_CalcTipSize
(
hwnd
,
infoPtr
,
&
size
);
TRACE
(
"size %
ld x %l
d
\n
"
,
size
.
cx
,
size
.
cy
);
TRACE
(
"size %
d x %
d
\n
"
,
size
.
cx
,
size
.
cy
);
return
MAKELRESULT
(
size
.
cx
,
size
.
cy
);
return
MAKELRESULT
(
size
.
cx
,
size
.
cy
);
}
}
...
@@ -1794,7 +1794,7 @@ TOOLTIPS_RelayEvent (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1794,7 +1794,7 @@ TOOLTIPS_RelayEvent (HWND hwnd, WPARAM wParam, LPARAM lParam)
&
pt
);
&
pt
);
TRACE
(
"tool (%p) %d %d %d
\n
"
,
hwnd
,
nOldTool
,
TRACE
(
"tool (%p) %d %d %d
\n
"
,
hwnd
,
nOldTool
,
infoPtr
->
nTool
,
infoPtr
->
nCurrentTool
);
infoPtr
->
nTool
,
infoPtr
->
nCurrentTool
);
TRACE
(
"WM_MOUSEMOVE (%p %ld %l
d)
\n
"
,
hwnd
,
pt
.
x
,
pt
.
y
);
TRACE
(
"WM_MOUSEMOVE (%p %d %
d)
\n
"
,
hwnd
,
pt
.
x
,
pt
.
y
);
if
(
infoPtr
->
nTool
!=
nOldTool
)
{
if
(
infoPtr
->
nTool
!=
nOldTool
)
{
if
(
infoPtr
->
nTool
==
-
1
)
{
/* Moved out of all tools */
if
(
infoPtr
->
nTool
==
-
1
)
{
/* Moved out of all tools */
...
...
dlls/comctl32/trackbar.c
View file @
1c16d833
...
@@ -441,7 +441,7 @@ TRACKBAR_CalcSelection (TRACKBAR_INFO *infoPtr)
...
@@ -441,7 +441,7 @@ TRACKBAR_CalcSelection (TRACKBAR_INFO *infoPtr)
}
}
}
}
TRACE
(
"selection[left=%
ld, top=%ld, right=%ld, bottom=%l
d]
\n
"
,
TRACE
(
"selection[left=%
d, top=%d, right=%d, bottom=%
d]
\n
"
,
selection
->
left
,
selection
->
top
,
selection
->
right
,
selection
->
bottom
);
selection
->
left
,
selection
->
top
,
selection
->
right
,
selection
->
bottom
);
}
}
...
@@ -451,7 +451,7 @@ TRACKBAR_AutoPage (TRACKBAR_INFO *infoPtr, POINT clickPoint)
...
@@ -451,7 +451,7 @@ TRACKBAR_AutoPage (TRACKBAR_INFO *infoPtr, POINT clickPoint)
LONG
dir
=
TRACKBAR_GetAutoPageDirection
(
infoPtr
,
clickPoint
);
LONG
dir
=
TRACKBAR_GetAutoPageDirection
(
infoPtr
,
clickPoint
);
LONG
prevPos
=
infoPtr
->
lPos
;
LONG
prevPos
=
infoPtr
->
lPos
;
TRACE
(
"x=%
ld, y=%ld, dir=%l
d
\n
"
,
clickPoint
.
x
,
clickPoint
.
y
,
dir
);
TRACE
(
"x=%
d, y=%d, dir=%
d
\n
"
,
clickPoint
.
x
,
clickPoint
.
y
,
dir
);
if
(
dir
>
0
&&
(
infoPtr
->
flags
&
TB_AUTO_PAGE_RIGHT
))
if
(
dir
>
0
&&
(
infoPtr
->
flags
&
TB_AUTO_PAGE_RIGHT
))
TRACKBAR_PageDown
(
infoPtr
);
TRACKBAR_PageDown
(
infoPtr
);
...
@@ -1051,7 +1051,7 @@ static int comp_tics(const void *ap, const void *bp)
...
@@ -1051,7 +1051,7 @@ static int comp_tics(const void *ap, const void *bp)
const
DWORD
a
=
*
(
const
DWORD
*
)
ap
;
const
DWORD
a
=
*
(
const
DWORD
*
)
ap
;
const
DWORD
b
=
*
(
const
DWORD
*
)
bp
;
const
DWORD
b
=
*
(
const
DWORD
*
)
bp
;
TRACE
(
"(a=%
ld, b=%l
d)
\n
"
,
a
,
b
);
TRACE
(
"(a=%
d, b=%
d)
\n
"
,
a
,
b
);
if
(
a
<
b
)
return
-
1
;
if
(
a
<
b
)
return
-
1
;
if
(
a
>
b
)
return
1
;
if
(
a
>
b
)
return
1
;
return
0
;
return
0
;
...
@@ -1292,7 +1292,7 @@ TRACKBAR_SetTic (TRACKBAR_INFO *infoPtr, LONG lPos)
...
@@ -1292,7 +1292,7 @@ TRACKBAR_SetTic (TRACKBAR_INFO *infoPtr, LONG lPos)
if
((
lPos
<
infoPtr
->
lRangeMin
)
||
(
lPos
>
infoPtr
->
lRangeMax
))
if
((
lPos
<
infoPtr
->
lRangeMin
)
||
(
lPos
>
infoPtr
->
lRangeMax
))
return
FALSE
;
return
FALSE
;
TRACE
(
"lPos=%
l
d
\n
"
,
lPos
);
TRACE
(
"lPos=%d
\n
"
,
lPos
);
infoPtr
->
uNumTics
++
;
infoPtr
->
uNumTics
++
;
infoPtr
->
tics
=
ReAlloc
(
infoPtr
->
tics
,
infoPtr
->
tics
=
ReAlloc
(
infoPtr
->
tics
,
...
...
dlls/comctl32/treeview.c
View file @
1c16d833
...
@@ -627,7 +627,7 @@ TREEVIEW_SendCustomDrawNotify(TREEVIEW_INFO *infoPtr, DWORD dwDrawStage,
...
@@ -627,7 +627,7 @@ TREEVIEW_SendCustomDrawNotify(TREEVIEW_INFO *infoPtr, DWORD dwDrawStage,
NMTVCUSTOMDRAW
nmcdhdr
;
NMTVCUSTOMDRAW
nmcdhdr
;
LPNMCUSTOMDRAW
nmcd
;
LPNMCUSTOMDRAW
nmcd
;
TRACE
(
"drawstage:%
l
x hdc:%p
\n
"
,
dwDrawStage
,
hdc
);
TRACE
(
"drawstage:%x hdc:%p
\n
"
,
dwDrawStage
,
hdc
);
nmcd
=
&
nmcdhdr
.
nmcd
;
nmcd
=
&
nmcdhdr
.
nmcd
;
nmcd
->
hdr
.
hwndFrom
=
hwnd
;
nmcd
->
hdr
.
hwndFrom
=
hwnd
;
...
@@ -686,7 +686,7 @@ TREEVIEW_SendCustomDrawItemNotify(TREEVIEW_INFO *infoPtr, HDC hdc,
...
@@ -686,7 +686,7 @@ TREEVIEW_SendCustomDrawItemNotify(TREEVIEW_INFO *infoPtr, HDC hdc,
nmcd
->
lItemlParam
=
wineItem
->
lParam
;
nmcd
->
lItemlParam
=
wineItem
->
lParam
;
nmcdhdr
->
iLevel
=
wineItem
->
iLevel
;
nmcdhdr
->
iLevel
=
wineItem
->
iLevel
;
TRACE
(
"drawstage:%
l
x hdc:%p item:%lx, itemstate:%x, lItemlParam:%lx
\n
"
,
TRACE
(
"drawstage:%x hdc:%p item:%lx, itemstate:%x, lItemlParam:%lx
\n
"
,
nmcd
->
dwDrawStage
,
nmcd
->
hdc
,
nmcd
->
dwItemSpec
,
nmcd
->
dwDrawStage
,
nmcd
->
hdc
,
nmcd
->
dwItemSpec
,
nmcd
->
uItemState
,
nmcd
->
lItemlParam
);
nmcd
->
uItemState
,
nmcd
->
lItemlParam
);
...
@@ -1966,7 +1966,7 @@ TREEVIEW_SetInsertMarkColor(TREEVIEW_INFO *infoPtr, COLORREF color)
...
@@ -1966,7 +1966,7 @@ TREEVIEW_SetInsertMarkColor(TREEVIEW_INFO *infoPtr, COLORREF color)
{
{
COLORREF
prevColor
=
infoPtr
->
clrInsertMark
;
COLORREF
prevColor
=
infoPtr
->
clrInsertMark
;
TRACE
(
"%
l
x
\n
"
,
color
);
TRACE
(
"%x
\n
"
,
color
);
infoPtr
->
clrInsertMark
=
color
;
infoPtr
->
clrInsertMark
=
color
;
return
(
LRESULT
)
prevColor
;
return
(
LRESULT
)
prevColor
;
...
@@ -2030,7 +2030,7 @@ TREEVIEW_GetItemRect(TREEVIEW_INFO *infoPtr, BOOL fTextRect, LPRECT lpRect)
...
@@ -2030,7 +2030,7 @@ TREEVIEW_GetItemRect(TREEVIEW_INFO *infoPtr, BOOL fTextRect, LPRECT lpRect)
*
lpRect
=
wineItem
->
rect
;
*
lpRect
=
wineItem
->
rect
;
}
}
TRACE
(
"%s [L:%
ld R:%ld T:%ld B:%l
d]
\n
"
,
fTextRect
?
"text"
:
"item"
,
TRACE
(
"%s [L:%
d R:%d T:%d B:%
d]
\n
"
,
fTextRect
?
"text"
:
"item"
,
lpRect
->
left
,
lpRect
->
right
,
lpRect
->
top
,
lpRect
->
bottom
);
lpRect
->
left
,
lpRect
->
right
,
lpRect
->
top
,
lpRect
->
bottom
);
return
TRUE
;
return
TRUE
;
...
@@ -2575,7 +2575,7 @@ TREEVIEW_DrawItem(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *wineItem)
...
@@ -2575,7 +2575,7 @@ TREEVIEW_DrawItem(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *wineItem)
rcText
.
left
=
wineItem
->
textOffset
;
rcText
.
left
=
wineItem
->
textOffset
;
rcText
.
right
=
rcText
.
left
+
wineItem
->
textWidth
+
4
;
rcText
.
right
=
rcText
.
left
+
wineItem
->
textWidth
+
4
;
TRACE
(
"drawing text %s at (%ld,%ld)-(%ld,%l
d)
\n
"
,
TRACE
(
"drawing text %s at (%d,%d)-(%d,%
d)
\n
"
,
debugstr_w
(
wineItem
->
pszText
),
debugstr_w
(
wineItem
->
pszText
),
rcText
.
left
,
rcText
.
top
,
rcText
.
right
,
rcText
.
bottom
);
rcText
.
left
,
rcText
.
top
,
rcText
.
right
,
rcText
.
bottom
);
...
@@ -3494,7 +3494,7 @@ TREEVIEW_HitTest(TREEVIEW_INFO *infoPtr, LPTVHITTESTINFO lpht)
...
@@ -3494,7 +3494,7 @@ TREEVIEW_HitTest(TREEVIEW_INFO *infoPtr, LPTVHITTESTINFO lpht)
}
}
lpht
->
hItem
=
wineItem
;
lpht
->
hItem
=
wineItem
;
TRACE
(
"(%
ld,%l
d):result %x
\n
"
,
lpht
->
pt
.
x
,
lpht
->
pt
.
y
,
lpht
->
flags
);
TRACE
(
"(%
d,%
d):result %x
\n
"
,
lpht
->
pt
.
x
,
lpht
->
pt
.
y
,
lpht
->
flags
);
return
(
LRESULT
)
wineItem
;
return
(
LRESULT
)
wineItem
;
}
}
...
@@ -4172,7 +4172,7 @@ TREEVIEW_CreateDragImage(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
...
@@ -4172,7 +4172,7 @@ TREEVIEW_CreateDragImage(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
);
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
);
GetTextExtentPoint32W
(
hdc
,
dragItem
->
pszText
,
strlenW
(
dragItem
->
pszText
),
GetTextExtentPoint32W
(
hdc
,
dragItem
->
pszText
,
strlenW
(
dragItem
->
pszText
),
&
size
);
&
size
);
TRACE
(
"%
ld %l
d %s %d
\n
"
,
size
.
cx
,
size
.
cy
,
debugstr_w
(
dragItem
->
pszText
),
TRACE
(
"%
d %
d %s %d
\n
"
,
size
.
cx
,
size
.
cy
,
debugstr_w
(
dragItem
->
pszText
),
strlenW
(
dragItem
->
pszText
));
strlenW
(
dragItem
->
pszText
));
hbmp
=
CreateCompatibleBitmap
(
htopdc
,
size
.
cx
,
size
.
cy
);
hbmp
=
CreateCompatibleBitmap
(
htopdc
,
size
.
cx
,
size
.
cy
);
hOldbmp
=
SelectObject
(
hdc
,
hbmp
);
hOldbmp
=
SelectObject
(
hdc
,
hbmp
);
...
@@ -4509,7 +4509,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
...
@@ -4509,7 +4509,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
viscount
=
TREEVIEW_GetVisibleCount
(
infoPtr
);
viscount
=
TREEVIEW_GetVisibleCount
(
infoPtr
);
TRACE
(
"%p (%s) %
ld - %l
d viscount(%d)
\n
"
,
item
,
TREEVIEW_ItemName
(
item
),
item
->
visibleOrder
,
TRACE
(
"%p (%s) %
d - %
d viscount(%d)
\n
"
,
item
,
TREEVIEW_ItemName
(
item
),
item
->
visibleOrder
,
hasFirstVisible
?
infoPtr
->
firstVisible
->
visibleOrder
:
-
1
,
viscount
);
hasFirstVisible
?
infoPtr
->
firstVisible
->
visibleOrder
:
-
1
,
viscount
);
if
(
hasFirstVisible
)
if
(
hasFirstVisible
)
...
@@ -4828,7 +4828,7 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
...
@@ -4828,7 +4828,7 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
TREEVIEW_INFO
*
infoPtr
;
TREEVIEW_INFO
*
infoPtr
;
LOGFONTW
lf
;
LOGFONTW
lf
;
TRACE
(
"wnd %p, style %
l
x
\n
"
,
hwnd
,
GetWindowLongW
(
hwnd
,
GWL_STYLE
));
TRACE
(
"wnd %p, style %x
\n
"
,
hwnd
,
GetWindowLongW
(
hwnd
,
GWL_STYLE
));
infoPtr
=
(
TREEVIEW_INFO
*
)
Alloc
(
sizeof
(
TREEVIEW_INFO
));
infoPtr
=
(
TREEVIEW_INFO
*
)
Alloc
(
sizeof
(
TREEVIEW_INFO
));
...
@@ -5266,12 +5266,12 @@ TREEVIEW_Notify(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
...
@@ -5266,12 +5266,12 @@ TREEVIEW_Notify(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if
(
lppgc
->
dwFlag
==
PGF_CALCWIDTH
)
{
if
(
lppgc
->
dwFlag
==
PGF_CALCWIDTH
)
{
lppgc
->
iWidth
=
infoPtr
->
treeWidth
;
lppgc
->
iWidth
=
infoPtr
->
treeWidth
;
TRACE
(
"got PGN_CALCSIZE, returning horz size = %ld, client=%l
d
\n
"
,
TRACE
(
"got PGN_CALCSIZE, returning horz size = %d, client=%
d
\n
"
,
infoPtr
->
treeWidth
,
infoPtr
->
clientWidth
);
infoPtr
->
treeWidth
,
infoPtr
->
clientWidth
);
}
}
else
{
else
{
lppgc
->
iHeight
=
infoPtr
->
treeHeight
;
lppgc
->
iHeight
=
infoPtr
->
treeHeight
;
TRACE
(
"got PGN_CALCSIZE, returning vert size = %ld, client=%l
d
\n
"
,
TRACE
(
"got PGN_CALCSIZE, returning vert size = %d, client=%
d
\n
"
,
infoPtr
->
treeHeight
,
infoPtr
->
clientHeight
);
infoPtr
->
treeHeight
,
infoPtr
->
clientHeight
);
}
}
return
0
;
return
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