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
16c04be4
Commit
16c04be4
authored
Apr 14, 2002
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Apr 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- When dumping NMCUSTOMDRAW, use correct size for a Toolbar.
- Add notify names for controls: tooltips, updown, calendar, datetime, ip, and status.
parent
64a49d31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
spy.c
windows/spy.c
+39
-4
No files found.
windows/spy.c
View file @
16c04be4
...
...
@@ -1581,6 +1581,10 @@ static const SPY_NOTIFY spnfy_array[] = {
SPNFY
(
TVN_BEGINLABELEDITW
,
NMHDR
),
SPNFY
(
TVN_ENDLABELEDITW
,
NMHDR
),
/* Tooltips 0U-520U to 0U-549U */
SPNFY
(
TTN_GETDISPINFOA
,
NMHDR
),
SPNFY
(
TTN_SHOW
,
NMHDR
),
SPNFY
(
TTN_POP
,
NMHDR
),
SPNFY
(
TTN_GETDISPINFOW
,
NMHDR
),
/* Tab 0U-550U to 0U-580U */
SPNFY
(
TCN_KEYDOWN
,
NMHDR
),
SPNFY
(
TCN_SELCHANGE
,
NMHDR
),
...
...
@@ -1609,8 +1613,23 @@ static const SPY_NOTIFY spnfy_array[] = {
SPNFY
(
TBN_GETINFOTIPW
,
NMTBGETINFOTIPW
),
SPNFY
(
TBN_GETBUTTONINFOW
,
NMTOOLBARW
),
/* Up/Down 0U-721U to 0U-740U */
SPNFY
(
UDN_DELTAPOS
,
NMHDR
),
/* Month Calendar 0U-750U to 0U-759U */
SPNFY
(
MCN_SELCHANGE
,
NMHDR
),
SPNFY
(
MCN_GETDAYSTATE
,
NMHDR
),
SPNFY
(
MCN_SELECT
,
NMHDR
),
/* Date/Time 0U-760U to 0U-799U */
SPNFY
(
DTN_DATETIMECHANGE
,
NMHDR
),
SPNFY
(
DTN_USERSTRINGA
,
NMHDR
),
SPNFY
(
DTN_WMKEYDOWNA
,
NMHDR
),
SPNFY
(
DTN_FORMATA
,
NMHDR
),
SPNFY
(
DTN_FORMATQUERYA
,
NMHDR
),
SPNFY
(
DTN_DROPDOWN
,
NMHDR
),
SPNFY
(
DTN_CLOSEUP
,
NMHDR
),
SPNFY
(
DTN_USERSTRINGW
,
NMHDR
),
SPNFY
(
DTN_WMKEYDOWNW
,
NMHDR
),
SPNFY
(
DTN_FORMATW
,
NMHDR
),
SPNFY
(
DTN_FORMATQUERYW
,
NMHDR
),
/* ComboBoxEx 0U-800U to 0U-830U */
SPNFY
(
CBEN_GETDISPINFOA
,
NMCOMBOBOXEXA
),
SPNFY
(
CBEN_INSERTITEM
,
NMCOMBOBOXEXA
),
...
...
@@ -1632,7 +1651,9 @@ static const SPY_NOTIFY spnfy_array[] = {
SPNFY
(
RBN_DELETEDBAND
,
NMREBAR
),
SPNFY
(
RBN_CHILDSIZE
,
NMREBARCHILDSIZE
),
/* IP Adderss 0U-860U to 0U-879U */
SPNFY
(
IPN_FIELDCHANGED
,
NMHDR
),
/* Status bar 0U-880U to 0U-899U */
SPNFY
(
SBN_SIMPLEMODECHANGE
,
NMHDR
),
/* Pager 0U-900U to 0U-950U */
SPNFY
(
PGN_SCROLL
,
NMPGSCROLL
),
SPNFY
(
PGN_CALCSIZE
,
NMPGCALCSIZE
),
...
...
@@ -2043,20 +2064,34 @@ void SPY_DumpStructure (SPY_INSTANCE *sp_e, BOOL enter)
}
break
;
case
WM_NOTIFY
:
if
(
!
enter
)
break
;
/* if (!enter) break; */
{
NMHDR
*
pnmh
=
(
NMHDR
*
)
sp_e
->
lParam
;
UINT
*
q
;
UINT
*
q
,
dumplen
;
const
SPY_NOTIFY
*
p
;
WCHAR
from_class
[
60
];
DWORD
save_error
;
p
=
SPY_Bsearch_Notify
(
&
spnfy_array
[
0
],
end_spnfy_array
,
pnmh
->
code
);
if
(
p
)
{
TRACE
(
"NMHDR hwndFrom=0x%08x idFrom=0x%08x code=%s<0x%08x>, extra=0x%x
\n
"
,
pnmh
->
hwndFrom
,
pnmh
->
idFrom
,
p
->
name
,
pnmh
->
code
,
p
->
len
);
if
(
p
->
len
>
0
)
{
dumplen
=
p
->
len
;
/* for CUSTOMDRAW, dump all the data for TOOLBARs */
if
(
pnmh
->
code
==
NM_CUSTOMDRAW
)
{
/* save and restore error code over the next call */
save_error
=
GetLastError
();
GetClassNameW
(
pnmh
->
hwndFrom
,
from_class
,
sizeof
(
from_class
)
/
sizeof
(
WCHAR
));
SetLastError
(
save_error
);
if
(
strcmpW
(
TOOLBARCLASSNAMEW
,
from_class
)
==
0
)
dumplen
=
sizeof
(
NMTBCUSTOMDRAW
)
-
sizeof
(
NMHDR
);
}
if
(
dumplen
>
0
)
{
q
=
(
UINT
*
)(
pnmh
+
1
);
SPY_DumpMem
(
"NM extra"
,
q
,
(
INT
)
p
->
len
);
SPY_DumpMem
(
"NM extra"
,
q
,
(
INT
)
dump
len
);
}
}
else
...
...
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