How to pop up a message box?

Hey guys!
Any idea to pop up a message box with SDL?

Hi,

if you’re on Windows you can call Win32 API directly and use function
called MessageBox()

http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx

If you want some cross-platform solution, you might want to display
your custom message box in your SDL window…

PavelOn 20.3.2010, at 12:11, lth0721 at 163.com wrote:

Hey guys!
Any idea to pop up a message box with SDL?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Pavel Kanzelsberger


E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633

I wrote a solution for the 3 major OSes in ioquake3. Look for Sys_Dialog
in the following files:

http://svn.icculus.org/quake3/trunk/code/sys/sys_win32.c?revision=1778&view=markup
http://svn.icculus.org/quake3/trunk/code/sys/sys_unix.c?revision=1773&view=markup
http://svn.icculus.org/quake3/trunk/code/sys/sys_osx.m?revision=1775&view=markupOn 22/03/2010 08:33, Pavel Kanzelsberger wrote:

Hi,

if you’re on Windows you can call Win32 API directly and use function
called MessageBox()

http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx

If you want some cross-platform solution, you might want to display your
custom message box in your SDL window…

1 Like

Thx for your replys.
I will try it.