• Advertisement
Sign in to follow this  

Message Problem

This topic is 4837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm creating a game in C++ and I use SDL as graphic library. I'm my game if have an option to click on a button which name is "About". When I click on it, it opens a message, but the message doesn't stay on top of the screen, it goes behind the screen of the game (even when the game is paused). I use this for the message popup:
  #include <stdio.h>
  #include <SDL/SDL.h>
  #include <windows.h>

  MessageBox(NULL, text","About",MB_OK);
What can i do to let it stay at the top?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
insead of NULL you can use GetForegroundWindow()

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement