Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Dialog boxes with page flipping

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 jtecin   Members   

122
Like
Likes
Like

Posted 07 November 1999 - 07:48 AM

I posted a reply with something like this question in another forum, but I think the question actually belongs in this forum:

In the course of a game, let's say the player presses CTRL S which is the shortcut for saving in my game. I then want a dailog box I made in VC++ to pop up and let them choose what to save it under. I tried using MFC to load the dialog box, but with all the page flipping (I'm using DirectX BTW), it gets messed up. Does anybody know how to load the dialog box and have it stay there?


#2 Shinkage   Members   

595
Like
Likes
Like

Posted 07 November 1999 - 07:48 AM

In order for Windows to draw to the screen it has to be set to the surface the GDI recognizes. When you are about to call up the dialog box, call the DirectDraw->FlipToGDISurface function and then halt all page flipping. When the dialog box goes away, you can resume page flipping. Or you could just not use page flipping.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.