msgbox.c 13.8 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
/*
 * Message boxes
 *
 * Copyright 1995 Bernd Schmidt
5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20
 */

21
#include <stdarg.h>
22
#include <string.h>
Patrik Stridvall's avatar
Patrik Stridvall committed
23

24
#include "windef.h"
25
#include "winbase.h"
26
#include "wingdi.h"
Patrik Stridvall's avatar
Patrik Stridvall committed
27
#include "wine/winbase16.h"
28
#include "wine/winuser16.h"
29
#include "winreg.h"
30
#include "winternl.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
31
#include "dlgs.h"
32
#include "user.h"
33
#include "wine/debug.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
34

35
WINE_DEFAULT_DEBUG_CHANNEL(dialog);
36
WINE_DECLARE_DEBUG_CHANNEL(msgbox);
37

38 39
#define MSGBOX_IDICON 1088
#define MSGBOX_IDTEXT 100
40
#define IDS_ERROR     2
Alexandre Julliard's avatar
Alexandre Julliard committed
41

42
static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
43
{
44
    HFONT hFont = 0, hPrevFont = 0;
45 46 47 48 49 50
    RECT rect;
    HWND hItem;
    HDC hdc;
    int i, buttons;
    int bspace, bw, bh, theight, tleft, wwidth, wheight, bpos;
    int borheight, borwidth, iheight, ileft, iwidth, twidth, tiheight;
51
    NONCLIENTMETRICSW nclm;
52 53
    LPCWSTR lpszText;
    WCHAR buf[256];
54

55 56 57 58 59 60 61 62 63
    nclm.cbSize = sizeof(nclm);
    SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, 0, &nclm, 0);
    hFont = CreateFontIndirectW (&nclm.lfMessageFont);
    /* set button font */
    for (i=1; i < 8; i++)
	SendDlgItemMessageW (hwnd, i, WM_SETFONT, (WPARAM)hFont, 0);
    /* set text font */
    SendDlgItemMessageW (hwnd, MSGBOX_IDTEXT, WM_SETFONT, (WPARAM)hFont, 0);

64
    if (HIWORD(lpmb->lpszCaption)) {
65
       SetWindowTextW(hwnd, lpmb->lpszCaption);
66
    } else {
67 68 69 70 71 72 73 74
       UINT res_id = LOWORD(lpmb->lpszCaption);
       if (res_id)
       {
           if (LoadStringW(lpmb->hInstance, res_id, buf, 256))
               SetWindowTextW(hwnd, buf);
       }
       else
       {
75
           if (LoadStringW(user32_module, IDS_ERROR, buf, 256))
76 77
               SetWindowTextW(hwnd, buf);
       }
78 79 80 81 82
    }
    if (HIWORD(lpmb->lpszText)) {
       lpszText = lpmb->lpszText;
    } else {
       lpszText = buf;
83
       if (!LoadStringW(lpmb->hInstance, LOWORD(lpmb->lpszText), buf, 256))
84 85
	  *buf = 0;	/* FIXME ?? */
    }
86 87
    
    TRACE_(msgbox)("%s\n", debugstr_w(lpszText));
88
    SetWindowTextW(GetDlgItem(hwnd, MSGBOX_IDTEXT), lpszText);
89

Alexandre Julliard's avatar
Alexandre Julliard committed
90
    /* Hide not selected buttons */
Alexandre Julliard's avatar
Alexandre Julliard committed
91
    switch(lpmb->dwStyle & MB_TYPEMASK) {
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
    case MB_OK:
	ShowWindow(GetDlgItem(hwnd, IDCANCEL), SW_HIDE);
	/* fall through */
    case MB_OKCANCEL:
	ShowWindow(GetDlgItem(hwnd, IDABORT), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDRETRY), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDIGNORE), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDYES), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDNO), SW_HIDE);
	break;
    case MB_ABORTRETRYIGNORE:
	ShowWindow(GetDlgItem(hwnd, IDOK), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDCANCEL), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDYES), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDNO), SW_HIDE);
	break;
    case MB_YESNO:
	ShowWindow(GetDlgItem(hwnd, IDCANCEL), SW_HIDE);
	/* fall through */
    case MB_YESNOCANCEL:
	ShowWindow(GetDlgItem(hwnd, IDOK), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDABORT), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDRETRY), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDIGNORE), SW_HIDE);
	break;
    case MB_RETRYCANCEL:
	ShowWindow(GetDlgItem(hwnd, IDOK), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDABORT), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDIGNORE), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDYES), SW_HIDE);
	ShowWindow(GetDlgItem(hwnd, IDNO), SW_HIDE);
	break;
Alexandre Julliard's avatar
Alexandre Julliard committed
124 125
    }
    /* Set the icon */
Alexandre Julliard's avatar
Alexandre Julliard committed
126
    switch(lpmb->dwStyle & MB_ICONMASK) {
127
    case MB_ICONEXCLAMATION:
128
	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
129
			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_EXCLAMATION), 0);
130 131
	break;
    case MB_ICONQUESTION:
132
	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
133
			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_QUESTION), 0);
134 135
	break;
    case MB_ICONASTERISK:
136
	SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
137
			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_ASTERISK), 0);
138 139
	break;
    case MB_ICONHAND:
140
      SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
141
			    (WPARAM)LoadIconW(0, (LPWSTR)IDI_HAND), 0);
142 143 144 145
      break;
    case MB_USERICON:
      SendDlgItemMessageW(hwnd, stc1, STM_SETICON,
			  (WPARAM)LoadIconW(lpmb->hInstance, lpmb->lpszIcon), 0);
146 147 148 149 150
      break;
    default:
	/* By default, Windows 95/98/NT do not associate an icon to message boxes.
         * So wine should do the same.
         */
151
	break;
Alexandre Julliard's avatar
Alexandre Julliard committed
152
    }
153

Alexandre Julliard's avatar
Alexandre Julliard committed
154
    /* Position everything */
155
    GetWindowRect(hwnd, &rect);
Alexandre Julliard's avatar
Alexandre Julliard committed
156
    borheight = rect.bottom - rect.top;
157
    borwidth  = rect.right - rect.left;
158
    GetClientRect(hwnd, &rect);
Alexandre Julliard's avatar
Alexandre Julliard committed
159
    borheight -= rect.bottom - rect.top;
160
    borwidth  -= rect.right - rect.left;
161

Alexandre Julliard's avatar
Alexandre Julliard committed
162
    /* Get the icon height */
163 164
    GetWindowRect(GetDlgItem(hwnd, MSGBOX_IDICON), &rect);
    MapWindowPoints(0, hwnd, (LPPOINT)&rect, 2);
165 166 167 168 169
    if (!(lpmb->dwStyle & MB_ICONMASK))
    {
        rect.bottom = rect.top;
        rect.right = rect.left;
    }
Alexandre Julliard's avatar
Alexandre Julliard committed
170
    iheight = rect.bottom - rect.top;
171 172
    ileft = rect.left;
    iwidth = rect.right - ileft;
173

174 175 176
    hdc = GetDC(hwnd);
    if (hFont)
	hPrevFont = SelectObject(hdc, hFont);
177

178 179
    /* Get the number of visible buttons and their size */
    bh = bw = 1; /* Minimum button sizes */
Alexandre Julliard's avatar
Alexandre Julliard committed
180 181
    for (buttons = 0, i = 1; i < 8; i++)
    {
182
	hItem = GetDlgItem(hwnd, i);
183
	if (GetWindowLongW(hItem, GWL_STYLE) & WS_VISIBLE)
184
	{
185
	    WCHAR buttonText[1024];
186 187
	    int w, h;
	    buttons++;
188
	    if (GetWindowTextW(hItem, buttonText, 1024))
189
	    {
190
		DrawTextW( hdc, buttonText, -1, &rect, DT_LEFT | DT_EXPANDTABS | DT_CALCRECT);
191 192 193 194 195 196
		h = rect.bottom - rect.top;
		w = rect.right - rect.left;
		if (h > bh) bh = h;
		if (w > bw)  bw = w ;
	    }
	}
Alexandre Julliard's avatar
Alexandre Julliard committed
197
    }
198
    bw = max(bw, bh * 2);
199 200 201 202
    /* Button white space */
    bh = bh * 2;
    bw = bw * 2;
    bspace = bw/3; /* Space between buttons */
203

Alexandre Julliard's avatar
Alexandre Julliard committed
204
    /* Get the text size */
205 206
    GetClientRect(GetDlgItem(hwnd, MSGBOX_IDTEXT), &rect);
    rect.top = rect.left = rect.bottom = 0;
207
    DrawTextW( hdc, lpszText, -1, &rect,
208 209
	       DT_LEFT | DT_EXPANDTABS | DT_WORDBREAK | DT_CALCRECT);
    /* Min text width corresponds to space for the buttons */
210 211
    tleft = ileft;
    if (iwidth) tleft += ileft + iwidth;
212
    twidth = max((bw + bspace) * buttons + bspace - tleft, rect.right);
213
    theight = rect.bottom;
214

215 216
    if (hFont)
	SelectObject(hdc, hPrevFont);
217
    ReleaseDC(hItem, hdc);
218

219
    tiheight = 16 + max(iheight, theight);
220 221
    wwidth  = tleft + twidth + ileft + borwidth;
    wheight = 8 + tiheight + bh + borheight;
222

223 224 225
    /* Resize the window */
    SetWindowPos(hwnd, 0, 0, 0, wwidth, wheight,
		 SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW);
226

Alexandre Julliard's avatar
Alexandre Julliard committed
227
    /* Position the icon */
228 229
    SetWindowPos(GetDlgItem(hwnd, MSGBOX_IDICON), 0, ileft, (tiheight - iheight) / 2, 0, 0,
		 SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW);
230

231 232 233
    /* Position the text */
    SetWindowPos(GetDlgItem(hwnd, MSGBOX_IDTEXT), 0, tleft, (tiheight - theight) / 2, twidth, theight,
		 SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW);
234

Alexandre Julliard's avatar
Alexandre Julliard committed
235
    /* Position the buttons */
236
    bpos = (wwidth - (bw + bspace) * buttons + bspace) / 2;
Alexandre Julliard's avatar
Alexandre Julliard committed
237
    for (buttons = i = 0; i < 7; i++) {
238 239
	/* some arithmetic to get the right order for YesNoCancel windows */
	hItem = GetDlgItem(hwnd, (i + 5) % 7 + 1);
240
	if (GetWindowLongW(hItem, GWL_STYLE) & WS_VISIBLE) {
241 242
	    if (buttons++ == ((lpmb->dwStyle & MB_DEFMASK) >> 8)) {
		SetFocus(hItem);
243
		SendMessageW( hItem, BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE );
244 245 246 247
	    }
	    SetWindowPos(hItem, 0, bpos, tiheight, bw, bh,
			 SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOREDRAW);
	    bpos += bw + bspace;
Alexandre Julliard's avatar
Alexandre Julliard committed
248 249
	}
    }
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265

    /* handle modal MessageBoxes */
    if (lpmb->dwStyle & (MB_TASKMODAL|MB_SYSTEMMODAL))
    {
	FIXME("%s modal msgbox ! Not modal yet.\n",
		lpmb->dwStyle & MB_TASKMODAL ? "task" : "system");
	/* Probably do EnumTaskWindows etc. here for TASKMODAL
	 * and work your way up to the top - I'm lazy (HWND_TOP) */
	SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0,
			SWP_NOSIZE | SWP_NOMOVE);
	if (lpmb->dwStyle & MB_TASKMODAL)
	    /* at least MB_TASKMODAL seems to imply a ShowWindow */
	    ShowWindow(hwnd, SW_SHOW);
    }
    if (lpmb->dwStyle & MB_APPLMODAL)
	FIXME("app modal msgbox ! Not modal yet.\n");
266

267 268 269 270 271 272 273 274 275
    return hFont;
}


/**************************************************************************
 *           MSGBOX_DlgProc
 *
 * Dialog procedure for message boxes.
 */
276
static INT_PTR CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
277
                                        WPARAM wParam, LPARAM lParam )
278
{
279 280
  HFONT hFont;

281 282
  switch(message) {
   case WM_INITDIALOG:
283 284 285 286 287 288 289 290
   {
       LPMSGBOXPARAMSW mbp = (LPMSGBOXPARAMSW)lParam;
       SetWindowContextHelpId(hwnd, mbp->dwContextHelpId);
       hFont = MSGBOX_OnInit(hwnd, mbp);
       SetPropA(hwnd, "WINE_MSGBOX_HFONT", (HANDLE)hFont);
       SetPropA(hwnd, "WINE_MSGBOX_HELPCALLBACK", (HANDLE)mbp->lpfnMsgBoxCallback);
       break;
   }
291

Alexandre Julliard's avatar
Alexandre Julliard committed
292
   case WM_COMMAND:
293
    switch (LOWORD(wParam))
Alexandre Julliard's avatar
Alexandre Julliard committed
294
    {
Alexandre Julliard's avatar
Alexandre Julliard committed
295 296 297 298 299 300 301
     case IDOK:
     case IDCANCEL:
     case IDABORT:
     case IDRETRY:
     case IDIGNORE:
     case IDYES:
     case IDNO:
302
      hFont = GetPropA(hwnd, "WINE_MSGBOX_HFONT");
303
      EndDialog(hwnd, wParam);
304 305
      if (hFont)
	  DeleteObject(hFont);
Alexandre Julliard's avatar
Alexandre Julliard committed
306 307
      break;
    }
308
    break;
Alexandre Julliard's avatar
Alexandre Julliard committed
309

310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
    case WM_HELP:
    {
        MSGBOXCALLBACK callback = (MSGBOXCALLBACK)GetPropA(hwnd, "WINE_MSGBOX_HELPCALLBACK");
        HELPINFO hi;

        memcpy(&hi, (void *)lParam, sizeof(hi));
        hi.dwContextId = GetWindowContextHelpId(hwnd);

        if (callback)
            callback(&hi);
        else
            SendMessageW(GetWindow(hwnd, GW_OWNER), WM_HELP, 0, (LPARAM)&hi);
	break;
   }

Alexandre Julliard's avatar
Alexandre Julliard committed
325 326
   default:
     /* Ok. Ignore all the other messages */
327
     TRACE("Message number 0x%04x is being ignored.\n", message);
Alexandre Julliard's avatar
Alexandre Julliard committed
328 329 330 331 332
    break;
  }
  return 0;
}

Alexandre Julliard's avatar
Alexandre Julliard committed
333

Alexandre Julliard's avatar
Alexandre Julliard committed
334
/**************************************************************************
335
 *		MessageBoxA (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
336 337 338
 *
 * NOTES
 *   The WARN is here to help debug erroneous MessageBoxes
339
 *   Use: WINEDEBUG=warn+dialog,+relay
Alexandre Julliard's avatar
Alexandre Julliard committed
340
 */
341
INT WINAPI MessageBoxA(HWND hWnd, LPCSTR text, LPCSTR title, UINT type)
Alexandre Julliard's avatar
Alexandre Julliard committed
342
{
343
    return MessageBoxExA(hWnd, text, title, type, LANG_NEUTRAL);
Alexandre Julliard's avatar
Alexandre Julliard committed
344 345
}

Alexandre Julliard's avatar
Alexandre Julliard committed
346

Alexandre Julliard's avatar
Alexandre Julliard committed
347
/**************************************************************************
348
 *		MessageBoxW (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
349
 */
350
INT WINAPI MessageBoxW( HWND hwnd, LPCWSTR text, LPCWSTR title, UINT type )
Alexandre Julliard's avatar
Alexandre Julliard committed
351
{
352
    return MessageBoxExW(hwnd, text, title, type, LANG_NEUTRAL);
Alexandre Julliard's avatar
Alexandre Julliard committed
353
}
Alexandre Julliard's avatar
Alexandre Julliard committed
354 355


Alexandre Julliard's avatar
Alexandre Julliard committed
356
/**************************************************************************
357
 *		MessageBoxExA (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
358
 */
359 360
INT WINAPI MessageBoxExA( HWND hWnd, LPCSTR text, LPCSTR title,
                              UINT type, WORD langid )
Alexandre Julliard's avatar
Alexandre Julliard committed
361
{
362 363 364 365 366 367 368 369 370 371 372 373 374 375
    MSGBOXPARAMSA msgbox;

    msgbox.cbSize = sizeof(msgbox);
    msgbox.hwndOwner = hWnd;
    msgbox.hInstance = 0;
    msgbox.lpszText = text;
    msgbox.lpszCaption = title;
    msgbox.dwStyle = type;
    msgbox.lpszIcon = NULL;
    msgbox.dwContextHelpId = 0;
    msgbox.lpfnMsgBoxCallback = NULL;
    msgbox.dwLanguageId = langid;

    return MessageBoxIndirectA(&msgbox);
Alexandre Julliard's avatar
Alexandre Julliard committed
376 377 378
}

/**************************************************************************
379
 *		MessageBoxExW (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
380
 */
381 382
INT WINAPI MessageBoxExW( HWND hWnd, LPCWSTR text, LPCWSTR title,
                              UINT type, WORD langid )
Alexandre Julliard's avatar
Alexandre Julliard committed
383
{
384 385 386 387 388 389 390 391 392 393 394 395 396 397
    MSGBOXPARAMSW msgbox;

    msgbox.cbSize = sizeof(msgbox);
    msgbox.hwndOwner = hWnd;
    msgbox.hInstance = 0;
    msgbox.lpszText = text;
    msgbox.lpszCaption = title;
    msgbox.dwStyle = type;
    msgbox.lpszIcon = NULL;
    msgbox.dwContextHelpId = 0;
    msgbox.lpfnMsgBoxCallback = NULL;
    msgbox.dwLanguageId = langid;

    return MessageBoxIndirectW(&msgbox);
Alexandre Julliard's avatar
Alexandre Julliard committed
398 399
}

Alexandre Julliard's avatar
Alexandre Julliard committed
400
/**************************************************************************
401
 *		MessageBoxIndirectA (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
402
 */
403
INT WINAPI MessageBoxIndirectA( LPMSGBOXPARAMSA msgbox )
Alexandre Julliard's avatar
Alexandre Julliard committed
404
{
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
    MSGBOXPARAMSW msgboxW;
    UNICODE_STRING textW, captionW, iconW;
    int ret;

    if (HIWORD(msgbox->lpszText))
        RtlCreateUnicodeStringFromAsciiz(&textW, msgbox->lpszText);
    else
        textW.Buffer = (LPWSTR)msgbox->lpszText;
    if (HIWORD(msgbox->lpszCaption))
        RtlCreateUnicodeStringFromAsciiz(&captionW, msgbox->lpszCaption);
    else
        captionW.Buffer = (LPWSTR)msgbox->lpszCaption;
    if (HIWORD(msgbox->lpszIcon))
        RtlCreateUnicodeStringFromAsciiz(&iconW, msgbox->lpszIcon);
    else
420
        iconW.Buffer = (LPWSTR)msgbox->lpszIcon;
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438

    msgboxW.cbSize = sizeof(msgboxW);
    msgboxW.hwndOwner = msgbox->hwndOwner;
    msgboxW.hInstance = msgbox->hInstance;
    msgboxW.lpszText = textW.Buffer;
    msgboxW.lpszCaption = captionW.Buffer;
    msgboxW.dwStyle = msgbox->dwStyle;
    msgboxW.lpszIcon = iconW.Buffer;
    msgboxW.dwContextHelpId = msgbox->dwContextHelpId;
    msgboxW.lpfnMsgBoxCallback = msgbox->lpfnMsgBoxCallback;
    msgboxW.dwLanguageId = msgbox->dwLanguageId;

    ret = MessageBoxIndirectW(&msgboxW);

    if (HIWORD(textW.Buffer)) RtlFreeUnicodeString(&textW);
    if (HIWORD(captionW.Buffer)) RtlFreeUnicodeString(&captionW);
    if (HIWORD(iconW.Buffer)) RtlFreeUnicodeString(&iconW);
    return ret;
Alexandre Julliard's avatar
Alexandre Julliard committed
439 440 441
}

/**************************************************************************
442
 *		MessageBoxIndirectW (USER32.@)
Alexandre Julliard's avatar
Alexandre Julliard committed
443
 */
444
INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
Alexandre Julliard's avatar
Alexandre Julliard committed
445
{
446 447 448
    LPVOID tmplate;
    HRSRC hRes;
    static const WCHAR msg_box_res_nameW[] = { 'M','S','G','B','O','X',0 };
449

450 451
    if (!(hRes = FindResourceExW(user32_module, (LPWSTR)RT_DIALOG,
                                 msg_box_res_nameW, msgbox->dwLanguageId)))
452
        return 0;
453
    if (!(tmplate = (LPVOID)LoadResource(user32_module, hRes)))
454 455 456 457
        return 0;

    return DialogBoxIndirectParamW(msgbox->hInstance, tmplate, msgbox->hwndOwner,
                                   MSGBOX_DlgProc, (LPARAM)msgbox);
Alexandre Julliard's avatar
Alexandre Julliard committed
458
}