From 55fe5e8102926c143c0014abcce947396d4d9ac4 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Sat, 5 Mar 2005 10:50:44 +0000 Subject: [PATCH] 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. --- windows/spy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/windows/spy.c b/windows/spy.c index 771f9788186..acf580341a5 100644 --- a/windows/spy.c +++ b/windows/spy.c @@ -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 {