Solved

Company logos on the titlebar

Posted on 2000-02-14
7
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 31

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
Industry Leaders: 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!

 
LVL 31

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 31

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

690 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