|
-
June 4th, 1999, 01:42 AM
#1
Title Bar Colour
Applications are appearing with a coloured title bar that fades e.g. standard blue to black. How is this done and how can it be programmed in VisC++5 or 6?
-
June 4th, 1999, 02:56 AM
#2
Re: Title Bar Colour
I would imagine they are handling WM_NCPAINT, calculating the size and position of the caption bar and painting it themselves, rather than letting the system do it.
-
June 4th, 1999, 05:38 AM
#3
Re: Title Bar Colour
This is done by handling the WM_NCPAINT message and drawing the caption manually.
It can be done in VC++ 5 or 6, and there is an example of exactly this in the MSDN periodicals documentation for MSJ (Microsoft Systems Journal).
Look in the VC++ MSDN library docs under Periodicals / Periodicals 1997 / Microsoft Systems Journal / January / C++ Q & A, and June / C++ Q & A.
The January article describes the techniques and gives an example, and the June article fixes a few problems with the January article!
I've tried it, and it works very effectively.
Dave
-
June 4th, 1999, 12:23 PM
#4
Re: Title Bar Colour
There are two articles on this topic in the misc section of this site.
I think they are based on the articles Dave mentioned.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|