Jump to content
  • Advertisement
Sign in to follow this  
TheMac

Remove title bar with SDL/C++/Win

This topic is 3173 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 using windows, SDL and C++, and just want a simple splash screen with a simple gui. All is good, but I need to remove the title bar, resize option, etc to make it look more like a slash screen. Any ideas on how to go about doing that? I'm new with SDL. Oh, and no MFC, I don't know it, and don't want to mess with it. :) Thanks.

Share this post


Link to post
Share on other sites
Advertisement
To do this, you will have to delve into Win32 code. This will break cross platform functionality.

You will need information from http://www.libsdl.org/cgi/docwiki.cgi/SDL_SysWMInfo
to get the HWND.

SDL only allows one window at a time, so you will probably have to create a primary surface with a call to SDL_SetVideoMode, free it after your splash screen and than create a new one.

I also don't see why you couldn't create a single primary window and using the Windows api, and modify it during run time. So you would only have a single SDL_SetVideoMode call but you reuse the same window.

I've never tried this, but have added a menu bar and done some other misc. things to the window.

I'd be interested in trying this out myself.

Share this post


Link to post
Share on other sites
Oh, just in case you didn't know, MFC is really just a bunch of classes that encapsulate the Windows API. Anything that you can do with MFC you can do with the Windows API (you just might be at it for a bit longer :)

Share this post


Link to post
Share on other sites
Great, thanks for your reply, and I will check out that site now. I am not really using SDL for a whole lot other then a quick GUI interface while Ogre loads in the background. :)

Share this post


Link to post
Share on other sites
I have the HWND handle now, but I'm not sure what I need to do to tell windows to hide the title bar, and turn off resize.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!