Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dialog boxes with 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.

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

#1 jtecin   Members   -  Reputation: 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?


Sponsor:

#2 Shinkage   Members   -  Reputation: 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.



PARTNERS