WM_USER messages should be dumped in the format "WM_USER + %d" to make

it easier to see what message it is for unknown classes.
This commit is contained in:
Robert Shearman 2005-03-05 10:50:44 +00:00 committed by Alexandre Julliard
parent e6150fe206
commit 55fe5e8102
1 changed files with 4 additions and 1 deletions

View File

@ -1959,7 +1959,10 @@ static void SPY_GetMsgStuff( SPY_INSTANCE *sp_e )
return;
}
}
sprintf( sp_e->msg_name, "%04x", sp_e->msgnum );
if (sp_e->msgnum >= WM_USER && sp_e->msgnum <= WM_APP)
sprintf( sp_e->msg_name, "WM_USER+%d", sp_e->msgnum - WM_USER );
else
sprintf( sp_e->msg_name, "%04x", sp_e->msgnum );
}
else
{