mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Preliminary support for MB_*MODAL styles.
This commit is contained in:
parent
6d09bf77da
commit
577e2298d3
@ -204,6 +204,23 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSA lpmb)
|
||||
bpos += bw + bspace;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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");
|
||||
|
||||
return hFont;
|
||||
}
|
||||
|
||||
@ -240,7 +257,7 @@ static LRESULT CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
|
||||
|
||||
default:
|
||||
/* Ok. Ignore all the other messages */
|
||||
TRACE("Message number %i is being ignored.\n", message);
|
||||
TRACE("Message number 0x%04x is being ignored.\n", message);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user