Command Button in the Caption

How to add my own command button to the window caption (like
CLOSE, MINIMIZE, RESTORE buttons)?
SergeSlyAsked:
Who is Participating?
 
BelgaratConnect With a Mentor Commented:
You have to subclass your window and handle WM_NCPAINT and WM_NCHITTEST messages on your own. You can use the default WM_NCHITTEST processing, but you have to completely write the painting procedure.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.