Sign in to follow this  

Custom window border

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

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