Solved

Company logos on the titlebar

Posted on 2000-02-14
7
242 Views
Last Modified: 2010-04-02
I need to put a company logos (3 of them) on the right hand side of the title bar.  Any ideas?
0
Comment
Question by:matoo
  • 3
  • 3
7 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 2518462
What OS?  windows?

If so you can do it by handling the WM_NCPAINT message.  You can pass this message to the default window procedure so the title is drawn properly, then when the default window procedure returns, you can draw your logo on top if what it drew.  This may cause a "flash" of the logo however, but it is the easiest way.  If you don't want the flash, you have to draw the title bar and non-client area manually.  That can be done, but it is quite a pain.
0
 
LVL 30

Expert Comment

by:Zoppo
ID: 2518662
Perhaps the 'flash' can be avoided by validating the area where the logos will be painted before passing the message to the default window procedure?
0
 
LVL 22

Expert Comment

by:nietod
ID: 2518709
Unforintaely, I don't think that works.  I don't think windows will record such a complex update region.  (The mac does)  But you can try that.
0
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.

 
LVL 30

Expert Comment

by:Zoppo
ID: 2518725
I don't know either, just a thought ...

BTW, nietod, could you tell me what's the meaning of 'Unforintaely' (or is it just a multi-typo)
0
 
LVL 22

Expert Comment

by:nietod
ID: 2518741
Unfortunately.  MULTI-typo
0
 
LVL 30

Expert Comment

by:Zoppo
ID: 2518752
:o)
0
 

Author Comment

by:matoo
ID: 2519403
Sounds like it might work - I'll give it a go thanks...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 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

17 Experts available now in Live!

Get 1:1 Help Now