Solved

Company logos on the titlebar

Posted on 2000-02-14
7
251 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

810 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