src/video/windows/SDL_windowsmessagebox.c
changeset 11375 2dd1cac9e43a
parent 11303 23000b73ce4e
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11374:2f2558b2ebcf 11375:2dd1cac9e43a
   483      * so that our little dialog gets exclusive focus at all times. */
   483      * so that our little dialog gets exclusive focus at all times. */
   484     if (messageboxdata->window) {
   484     if (messageboxdata->window) {
   485         ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
   485         ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd;
   486     }
   486     }
   487 
   487 
   488     *buttonid = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
   488     *buttonid = (int)DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc);
   489 
   489 
   490     FreeDialogData(dialog);
   490     FreeDialogData(dialog);
   491     return 0;
   491     return 0;
   492 }
   492 }
   493 
   493