Custom Border Drawing

G

Guest

Hello,
I'm looking into custom drawing for Windows.Forms controls. And I'm
wondering if anybody has any suggestions. I'm using VB.NET and I'm guess I
should either trap the OnPaint handler or catch the WM_PAINT in the WndProc
procedure.

Thanks!

Ryan
 
B

Bob Powell [MVP]

You need to trap WM_NCCALCSIZE to specify the relationship between the
client and non-client portions of the window and then WM_NCPAINT to draw the
border itself. These can be trapped in the WndProc override.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top