Page 1 of 1

Drawing on Non-Client Area...ish

Posted: Wed Jun 30, 2010 8:44 am
by Click16
Image

So what do you guys think?

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

Posted: Wed Jun 30, 2010 9:23 am
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.

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

Posted: Wed Jun 30, 2010 10:36 am
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

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

Posted: Wed Jun 30, 2010 7:37 pm
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

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

Posted: Thu Jul 01, 2010 6:17 pm
by Click16
Image

Image

Image

:D

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

Posted: Sat Jul 03, 2010 8:51 pm
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?

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

Posted: Sun Jul 04, 2010 1:33 am
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.