Jump to content
  • Advertisement
Sign in to follow this  
Decept

Custom window border

This topic is 5023 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 coding a Windows program and I want to make a custom look for it. I want to change the window's apperence, the border, the caption, min/max/close buttons, etc. I've searched and searched after information about this, but I found nothing helpful. My only lead so far is the WM_NCPAINT message, but I don't know how to really use it, it only gives me a region. Does anyone know how to do this in Win32, without MFC?

Share this post


Link to post
Share on other sites
Advertisement
You're asking for a lot of trouble actually.
Beside WM_NCPAINT you also need to watch for WM_NCACTIVATE and WM_SETTEXT, as both of them draw also without using WM_NCPAINT.

Have a look at here". This shows how to add custom buttons to the titlebar. Shouldn't be too hard to add custom painting too.

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!