Advertisement

Message Boxes in Full Screen

Started by September 27, 2000 12:25 PM
4 comments, last by Scooter 24 years, 3 months ago
Is it possible to use a message box in a full screen directx program? if so how?
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.
Dang, I haven''t touched directx in a few months, and wasn''t exactly a ''pro'' at it back then, but there is a function or flag like FLIP_TOGDI or something that allows GDI to share a fullscreen window.
Advertisement
Did you at least try to use a messagebox ?
Because AFAIK , it works very well. I think the fact that you can make GDI calls was made more clear in the version 7, but it seems to be working in previous versions as well.
According to what I read in the helpfiles, there is no real difference between using GDI func in full screen or not.

And if you haven't erased the tutorials of the SDK, then you might wanna check out the sample on using GDI (I don't remember the title, but basically it shows that you can use controls in a fullscreen program )

As they say ... RTFM

Edited by - ahw on September 27, 2000 2:27:40 PM
-----------------------------Sancte Isidore ora pro nobis !
From my experience, its pretty easy to use a message box from DX. Just set it up normally. The only problem is that on a flipping chain (2 surfaces for example), it''ll show up on average half the time (probably a third of the time on 3 surface flipping chain). Just before you use the MessageBox func, make a call to lpDD->FlipToGDISurface (some minor points to note regarding that funciton - see docs). This will make sure that the front surface is the same that the GDI uses to draw on.
Hope that helped.


"If you have any questions you may direct
them to that brick wall over there." - South Park
I use them all the time for debugging errors, though I would not know performance impact like IO Fission says.

==============================
\\// live long and prosper; \||/ die short and rot.
==============================

Drew Sikora
Executive Producer
GameDev.net

yeah you''re right, i figured out my problem. Thanks.
We are here just like this,It really doesn't matter why.The world is here like it is,'We could laugh we could cry.Is it good or is it bad,Wright or maybe wrong?There's no use of being sad,Without a purpose within a song.

This topic is closed to new replies.

Advertisement