Solved

Command Button in the Caption

Posted on 1998-06-28
1
188 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
no14 challenge 14 72
mapAB Challlenge 35 171
wordcount challenge 11 144
firstChar challenge 13 131
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 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