Sign in to follow this  

no window-border with windows.h

This topic is 4589 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
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

This topic is 4589 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this