Solved

Company logos on the titlebar

Posted on 2000-02-14
7
247 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 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

920 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

14 Experts available now in Live!

Get 1:1 Help Now