• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Command Button in the Caption

How to add my own command button to the window caption (like
CLOSE, MINIMIZE, RESTORE buttons)?
0
SergeSly
Asked:
SergeSly
1 Solution
 
BelgaratCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now