Commit 803ca3cb authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

Add a dedicated debug channel for message boxes which outputs the

contents of the message.
parent b6175f49
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dialog); WINE_DEFAULT_DEBUG_CHANNEL(dialog);
WINE_DECLARE_DEBUG_CHANNEL(msgbox);
#define MSGBOX_IDICON 1088 #define MSGBOX_IDICON 1088
#define MSGBOX_IDTEXT 100 #define MSGBOX_IDTEXT 100
...@@ -82,6 +83,8 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb) ...@@ -82,6 +83,8 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
if (!LoadStringW(lpmb->hInstance, LOWORD(lpmb->lpszText), buf, 256)) if (!LoadStringW(lpmb->hInstance, LOWORD(lpmb->lpszText), buf, 256))
*buf = 0; /* FIXME ?? */ *buf = 0; /* FIXME ?? */
} }
TRACE_(msgbox)("%s\n", debugstr_w(lpszText));
SetWindowTextW(GetDlgItem(hwnd, MSGBOX_IDTEXT), lpszText); SetWindowTextW(GetDlgItem(hwnd, MSGBOX_IDTEXT), lpszText);
/* Hide not selected buttons */ /* Hide not selected buttons */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment