Draw directly to title bar on a window?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top