CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    15

    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?


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    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.


    --
    Jason Teagle
    [email protected]

  3. #3
    Join Date
    Apr 1999
    Posts
    383

    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


  4. #4
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    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
  •  





Click Here to Expand Forum to Full Width

Featured