Solved

Command Button in the Caption

Posted on 1998-06-28
1
185 Views
Last Modified: 2013-11-20
How to add my own command button to the window caption (like
CLOSE, MINIMIZE, RESTORE buttons)?
0
Comment
Question by:SergeSly
1 Comment
 
LVL 2

Accepted Solution

by:
Belgarat earned 100 total points
ID: 1318476
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 98
Complete beginner needs help making a cron job 9 116
sum28 challenge 31 112
sumHeights  challenge 17 70
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question