Drawing on Non-Client Area...ish

Discuss anything programming related.
Post Reply
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Drawing on Non-Client Area...ish

Post by Click16 »

Image

So what do you guys think?
Image
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Drawing on Non-Client Area...ish

Post by XZodia »

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.
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
Prey
Posts: 129
Joined: Sat Dec 29, 2007 5:06 pm
Location: UK

Re: Drawing on Non-Client Area...ish

Post by Prey »

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
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Drawing on Non-Client Area...ish

Post by Click16 »

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
Ewwww.... VB *shutters*


-------------------

What I did is that normal forms have a client area, and a non- client area.
Image

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.
Image

I might release this, but I am making it a bit more pleasant to look at...

http://i50.tinypic.com/2irq5h1.jpg
Image
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Drawing on Non-Client Area...ish

Post by Click16 »

Image

Image

Image

:D
Image
User avatar
Twinreaper
Posts: 299
Joined: Sat Feb 23, 2008 7:41 pm
Location: PA

Re: Drawing on Non-Client Area...ish

Post by Twinreaper »

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?
Image
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Drawing on Non-Client Area...ish

Post by Click16 »

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?
Sorry to disappoint you, but I am only doing this because it is just something I really wanted to learn.
Image
Post Reply