Draw directly to title bar on a window?

G

Guest

Is it possible to draw directly to the title bar on a window? I'm wanting to
add another button to the window to pin it on top.

Any ideas?

Darrell
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

This is possible, but you'll need to handle non-client window notifications
such as WM_NCPAINT. You will have to override the WndProc method and provide
your own handling for the non-client notifications required to paint the
button and react on mouse clicks.
 

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