question about modal messageboxes.

Alexandre Julliard julliard at
Fri Oct 29 19:18:57 CDT 2004

"Ivan Leo Puoti" <puoti at> writes:

> I looked at MSDN docs for MessageBox
> and found that MB_SYSTEMMODAL is identical to MB_APPLMODAL, the only difference
> is that the dialogue box is created with WS_EX_TOPMOST.
> In Wine the window style is loaded from user32_En.rc, and STYLE contains,
> amongst other things, DS_SYSMODAL. MSDN
> says that if this value is used the window will be created using the
> WS_EX_TOPMOST style. But what this means is that in Wine a messagebox is
> *always* created with this style, while, if MSDN is correct, this should only
> happen when MB_SYSTEMMODAL is passed to MessageBox. Am I getting something wrong
> or is this a bug?
> If yes, would creating 2 resources, one for MB_APPLMODAL and one for
> MB_SYSTEMMODAL be a good solution?

WS_EX_TOPMOST does nothing on Wine anyway, so I wouldn't worry too
much about it. We certainly don't want 2 different resources, but it
would probably be cleaner to remove DS_SYSMODAL on the existing
resource, since the default is MB_APPLMODAL.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list