Jump to content
  • Advertisement
Sign in to follow this  
philipptr

no window-border with windows.h

This topic is 4833 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 just started coding with windows.h and it seems like i cant find out how to remove the windowframe/border. (searched on msdn for a while but couldnt find it) and does someone know a tutorial on drawing images with a double buffer in windows.h-windows? EDIT: i want to make a program lunching application, and already went to SDL (cause i kno how to remove the border there), but realised that SDL wouldnt be right because of cpu use and such things (my programm should stay in systemtray until you click it and then a skinable menu should pop up :) )

Share this post


Link to post
Share on other sites
Advertisement
You have a call to CreateWindow or CreateWindowEx somewhere i reckon.

From the WS_something-styles remove WS_BORDER, WS_THICKFRAME and WS_DLGFRAME. This leaves you without any border. No border also implies no caption though!

For example:


CreateWindow( "MyClass",
"Hurz",
( WS_POPUP | WS_VISIBLE ) & ~( WS_BORDER | WS_THICKFRAME | WS_DLGFRAME ),
... );

Share this post


Link to post
Share on other sites
Quote:
Original post by Endurion
...

CreateWindow( "MyClass",
"Hurz",
( WS_POPUP | WS_VISIBLE ) & ~( WS_BORDER | WS_THICKFRAME | WS_DLGFRAME ),
... );



thanks very much. i didnt knew howto remove specific flags. after studying them a bit, isnt what you do the same thing as just WS_POPUP?


btw: your rating: "User Rating: 1337" :D

Share this post


Link to post
Share on other sites
Yes, the WS_POPUP will remove the border itself, and the window also needs the WS_VISIBLE to be visible from the beginning.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!