Add a dedicated debug channel for message boxes which outputs the

contents of the message.
This commit is contained in:
Mike Hearn 2004-06-18 22:28:26 +00:00 committed by Alexandre Julliard
parent b6175f49af
commit 803ca3cb9e
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dialog);
WINE_DECLARE_DEBUG_CHANNEL(msgbox);
#define MSGBOX_IDICON 1088
#define MSGBOX_IDTEXT 100
@ -82,6 +83,8 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
if (!LoadStringW(lpmb->hInstance, LOWORD(lpmb->lpszText), buf, 256))
*buf = 0; /* FIXME ?? */
}
TRACE_(msgbox)("%s\n", debugstr_w(lpszText));
SetWindowTextW(GetDlgItem(hwnd, MSGBOX_IDTEXT), lpszText);
/* Hide not selected buttons */