Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
155168eb
Commit
155168eb
authored
May 22, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented printing out of some structures.
parent
f2616a24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
spy.c
misc/spy.c
+33
-1
No files found.
misc/spy.c
View file @
155168eb
...
...
@@ -661,7 +661,37 @@ const char *SPY_GetWndName( HWND hwnd )
else
lstrcpyA
(
wnd_buffer
,
"
\"
NULL
\"
"
);
return
wnd_buffer
;
}
/***********************************************************************
* SPY_DumpStructure
*/
void
SPY_DumpStructure
(
UINT
msg
,
LPARAM
structure
)
{
switch
(
msg
)
{
case
WM_DRAWITEM
:
{
DRAWITEMSTRUCT
*
lpdis
=
(
DRAWITEMSTRUCT
*
)
structure
;
TRACE
(
message
,
"DRAWITEMSTRUCT: CtlType=0x%08x CtlID=0x%08x
\n
"
,
lpdis
->
CtlType
,
lpdis
->
CtlID
);
TRACE
(
message
,
"itemID=0x%08x itemAction=0x%08x itemState=0x%08x
\n
"
,
lpdis
->
itemID
,
lpdis
->
itemAction
,
lpdis
->
itemState
);
TRACE
(
message
,
"hWnd=0x%04x hDC=0x%04x (%d,%d)-(%d,%d) itemData=0x%08lx
\n
"
,
lpdis
->
hwndItem
,
lpdis
->
hDC
,
lpdis
->
rcItem
.
left
,
lpdis
->
rcItem
.
top
,
lpdis
->
rcItem
.
right
,
lpdis
->
rcItem
.
bottom
,
lpdis
->
itemData
);
}
break
;
case
WM_MEASUREITEM
:
{
MEASUREITEMSTRUCT
*
lpmis
=
(
MEASUREITEMSTRUCT
*
)
structure
;
TRACE
(
message
,
"MEASUREITEMSTRUCT: CtlType=0x%08x CtlID=0x%08x
\n
"
,
lpmis
->
CtlType
,
lpmis
->
CtlID
);
TRACE
(
message
,
"itemID=0x%08x itemWidth=0x%08x itemHeight=0x%08x
\n
"
,
lpmis
->
itemID
,
lpmis
->
itemWidth
,
lpmis
->
itemHeight
);
TRACE
(
message
,
"itemData=0x%08lx
\n
"
,
lpmis
->
itemData
);
}
break
;
case
WM_NOTIFY
:
{
NMHDR
*
pnmh
=
(
NMHDR
*
)
structure
;
TRACE
(
message
,
"NMHDR hwndFrom=0x%08x idFrom=0x%08x code=0x%08x
\n
"
,
pnmh
->
hwndFrom
,
pnmh
->
idFrom
,
pnmh
->
code
);
}
default:
break
;
}
}
/***********************************************************************
* SPY_EnterMessage
*/
...
...
@@ -709,9 +739,11 @@ void SPY_EnterMessage( INT iFlag, HWND hWnd, UINT msg,
SPY_IndentLevel
,
""
,
hWnd
,
pname
,
msg
,
SPY_GetMsgName
(
msg
),
taskName
,
wParam
,
lParam
);
else
TRACE
(
message
,
"%*s(%08x) %-16s message [%04x] %s sent from %s wp=%08x lp=%08lx
\n
"
,
{
TRACE
(
message
,
"%*s(%08x) %-16s message [%04x] %s sent from %s wp=%08x lp=%08lx
\n
"
,
SPY_IndentLevel
,
""
,
hWnd
,
pname
,
msg
,
SPY_GetMsgName
(
msg
),
taskName
,
wParam
,
lParam
);
SPY_DumpStructure
(
msg
,
lParam
);
}
}
break
;
...
...
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