Add support for Wine internal messages.

This commit is contained in:
Guy Albertelli 2001-11-05 23:54:40 +00:00 committed by Alexandre Julliard
parent de6d4e211b
commit 8b0841ad38
1 changed files with 17 additions and 0 deletions

View File

@ -950,6 +950,17 @@ static const char * const CCMMessageTypeNames[SPY_MAX_CCMMSGNUM + 1] =
"CCM_GETUNICODEFORMAT"
};
#define SPY_MAX_WINEMSGNUM 6
static const char * const WINEMessageTypeNames[SPY_MAX_WINEMSGNUM + 1] =
{
"WM_WINE_DESTROYWINDOW",
"WM_WINE_SETWINDOWPOS",
"WM_WINE_SHOWWINDOW",
"WM_WINE_SETPARENT",
"WM_WINE_SETWINDOWLONG",
"WM_WINE_ENABLEWINDOW"
};
/* Virtual key names */
#define SPY_MAX_VKKEYSNUM 255
static const char * const VK_KeyNames[SPY_MAX_VKKEYSNUM + 1] =
@ -1632,6 +1643,12 @@ static const char *SPY_GetMsgInternal( UINT msg )
return CCMMessageTypeNames[msg-CCM_FIRST];
}
if (msg >= WM_WINE_DESTROYWINDOW && msg <= WM_WINE_DESTROYWINDOW + SPY_MAX_WINEMSGNUM)
{
if (!WINEMessageTypeNames[msg-WM_WINE_DESTROYWINDOW]) return "???";
return WINEMessageTypeNames[msg-WM_WINE_DESTROYWINDOW];
}
sprintf( msg_buffer, "WM_USER+%04x", msg - WM_USER );
return msg_buffer;
}