Solved

Command Button in the Caption

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 31
ShiftLeft challenge 21 66
Modbus - whats the maximum I can store in one register? 4 75
scoreUp challenge 14 48
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now