| View previous topic :: View next topic |
| Author |
Message |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Aug 15, 2008 11:46 pm Post subject: custom titlebar |
|
|
I was wondering if there was anyway to create a custom title bar for an application without having to create a region and such (as shown in noz3001's tutorial here: http://noz3001.wordpress.com/2007/03/05/window-shapes-regions/). My friend programs in C#.NET and he said something about handling a WM_NC message. I think it was either WM_NCPAINT or WM_NCCREATE. So is there a way you can replace the title bar with your own?
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Aug 16, 2008 5:42 am Post subject: |
|
|
He was probably referring to the handling messages to drag the window as if it was the title bar, which would be:
WM_NCLBUTTONDOWN (sent with HTCAPTION as wParam)
Either way, you will still have to draw the bar yourself, there isn't something predefined to do it for you.
_________________
- Retired. |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Aug 16, 2008 12:53 pm Post subject: |
|
|
No, he actually did it the way he described.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|