Skip to main content
gamedev.net
🔒 Locked

Custom window border

Started by Decept 0 replies 650+ views
Original Post
Decept
Decept
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?
Endurion
Endurion
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.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.