Drawing on Non-Client Area...ish
- Click16
- Posts: 1941
- Joined: Mon Dec 31, 2007 4:36 am
- Location: United States
Drawing on Non-Client Area...ish
So what do you guys think?
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Drawing on Non-Client Area...ish
I don't think that can be done.
The closest thing you could get, would be if you set the border to none and did it from scratch.
The closest thing you could get, would be if you set the border to none and did it from scratch.
- Prey
- Posts: 129
- Joined: Sat Dec 29, 2007 5:06 pm
- Location: UK
Re: Drawing on Non-Client Area...ish
You can override any message in your app, including ones that paint the titlebar. Try this http://www.codeproject.com/KB/vista/tak ... lebar.aspx
- Click16
- Posts: 1941
- Joined: Mon Dec 31, 2007 4:36 am
- Location: United States
Re: Drawing on Non-Client Area...ish
Ewwww.... VB *shutters*Prey wrote:You can override any message in your app, including ones that paint the titlebar. Try this http://www.codeproject.com/KB/vista/tak ... lebar.aspx
-------------------
What I did is that normal forms have a client area, and a non- client area.
My form, on the other hand, has only a client area. The caption buttons are drawn by default using DwmDefWindowProc void found int dwmapi.dll
DwmExtendFrameIntoClientArea also plays a role in this Depending on how much I extend the frame down, is how much space from the caption buttons and the start of the ''client area'' DotNetBar2 uses this. If you set your form to be an Office2007RibbonForm without the ribbon control, you will see an 8 pixel caption bar.
I might release this, but I am making it a bit more pleasant to look at...
http://i50.tinypic.com/2irq5h1.jpg
- Click16
- Posts: 1941
- Joined: Mon Dec 31, 2007 4:36 am
- Location: United States
- Twinreaper
- Posts: 299
- Joined: Sat Feb 23, 2008 7:41 pm
- Location: PA
Re: Drawing on Non-Client Area...ish
You wouldn't be doing any of this in preperation for a Halo 2 Vista app would you? I am curious if this serves a higher purpose or just for basic learnings?
- Click16
- Posts: 1941
- Joined: Mon Dec 31, 2007 4:36 am
- Location: United States
Re: Drawing on Non-Client Area...ish
Sorry to disappoint you, but I am only doing this because it is just something I really wanted to learn.Twinreaper wrote:You wouldn't be doing any of this in preperation for a Halo 2 Vista app would you? I am curious if this serves a higher purpose or just for basic learnings?