Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Background in ToolBar

Posted on 1998-08-25
1
Medium Priority
?
254 Views
Last Modified: 2013-11-19
How do i put a background in my ToolBar?
(Similar to that old versions of Internet Explorer use
to have)

/Daniel
0
Comment
Question by:Emoon
1 Comment
 
LVL 1

Accepted Solution

by:
motigust earned 100 total points
ID: 1321280
You may do it by overriding the OnEraseBackground function of the CToolbar.

1. Derive your own class from CToolbar.
2. Ovveride the OnEraseBackground function.
(Override the WM_ERASEBKGND message using the wizard)
3. Draw what you want on the pDC.


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

885 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