Placing Logo on the Top DockBar of the Frame Window Alabama

Great class that enables you to place your logo on the main dockbar of your SDI/MDI applications!

Local Companies

acquia.com
1.8772064254
200 Brickstone Square
Andover, AL
Arbitron Inc
205-977-6100
3500 Colonnade Pkwy
Birmingham, AL
Visual Solutions Inc
205-930-5540
2217 10th CT S
Birmingham, AL
ComFrame Software Corporation
205-329-7330
100 Corporate Parkway, Suite 300
Birmingham, AL
Appsolute Genius
(205) 266-7981
3800 Colonnade Parkway
Birmingham, AL
eClinicalworks EMR Software
+1-395-685-7896
218 Mount Holly
California, AL
Westglenn Software
205-870-3118
2100 Southbridge Pkwy
Birmingham, AL
Ihs Inc Software
205-408-1477
4945 Mountain View Pkwy
Birmingham, AL
J K Preg Illustration
(334) 613-9993
2704 Colonial Dr
Montgomery, AL
Priority Software
205-838-7061
9006 4th Ave S
Birmingham, AL

provided by: 
Originally published at Internet.com


We had to place our logo at some place in the right top corner of the frame window. I decided to place it on the top dockbar and created CLogo class for this purpose. This class is used for handling logo's location, tooltips and the message line in the status bar. Logo positions itself in the top right corner within parent dockbar. If the logo intersects with any toolbar then CLogo hides and otherwise it becomes visible. CLogo uses a string resource with the integer identifier of the logo window for displaying tooltips and the message line in the status bar. Besides, CLogo sends ON_LOGO_CLICK registered window message to the application main window when a user clicks on the logo window.



In the demo project I put in this article I derived CLogo from MFC CBitmapButton class. But you could change my code and derive CLogo from any class derived from CWnd. I use the class, from which CLogo is derived, for visual representation of logo.

Step 1: Create a new Single document or Multiple document project by using MFC AppWizard.

Step 2: Add Logo.cpp and Logo.h files to the project...

Read article at Internet.com site

Featured Local Company

eClinicalworks EMR Software

+1-395-685-7896
218 Mount Holly
California, AL
http://www.intelemed.biz

Related Articles
- Code to View/Hide Status Bar in SDI and MDI Applications Alabama
Here's a little handler for the OnViewStatusBar message handler to change the "View/Hide Status Bar" menu option so that the application (main) window changes its height according to the size of the visible client area.
- List control with single / double separator lines Alabama
- Animated Background Banner Alabama
- Resizable Docking Window 2 Alabama
Regional Articles
- Placing Logo on the Top DockBar of the Frame Window Alabaster AL
- Placing Logo on the Top DockBar of the Frame Window Albertville AL
- Placing Logo on the Top DockBar of the Frame Window Alexander City AL
- Placing Logo on the Top DockBar of the Frame Window Andalusia AL
- Placing Logo on the Top DockBar of the Frame Window Anniston AL
- Placing Logo on the Top DockBar of the Frame Window Arab AL
- Placing Logo on the Top DockBar of the Frame Window Athens AL
- Placing Logo on the Top DockBar of the Frame Window Atmore AL
- Placing Logo on the Top DockBar of the Frame Window Auburn AL
- Placing Logo on the Top DockBar of the Frame Window Bay Minette AL
- Placing Logo on the Top DockBar of the Frame Window Bessemer AL
- Placing Logo on the Top DockBar of the Frame Window Birmingham AL
- Placing Logo on the Top DockBar of the Frame Window Boaz AL
- Placing Logo on the Top DockBar of the Frame Window Brewton AL
- Placing Logo on the Top DockBar of the Frame Window Clanton AL
- Placing Logo on the Top DockBar of the Frame Window Cullman AL
- Placing Logo on the Top DockBar of the Frame Window Daphne AL
- Placing Logo on the Top DockBar of the Frame Window Decatur AL
- Placing Logo on the Top DockBar of the Frame Window Dothan AL
- Placing Logo on the Top DockBar of the Frame Window Enterprise AL
- Placing Logo on the Top DockBar of the Frame Window Eufaula AL
- Placing Logo on the Top DockBar of the Frame Window Fairhope AL
- Placing Logo on the Top DockBar of the Frame Window Florence AL
- Placing Logo on the Top DockBar of the Frame Window Foley AL
- Placing Logo on the Top DockBar of the Frame Window Fort Payne AL
- Placing Logo on the Top DockBar of the Frame Window Gadsden AL
- Placing Logo on the Top DockBar of the Frame Window Guntersville AL
- Placing Logo on the Top DockBar of the Frame Window Haleyville AL
- Placing Logo on the Top DockBar of the Frame Window Hartselle AL
- Placing Logo on the Top DockBar of the Frame Window Huntsville AL
- Placing Logo on the Top DockBar of the Frame Window Jasper AL
- Placing Logo on the Top DockBar of the Frame Window Madison AL
- Placing Logo on the Top DockBar of the Frame Window Mobile AL
- Placing Logo on the Top DockBar of the Frame Window Montevallo AL
- Placing Logo on the Top DockBar of the Frame Window Montgomery AL
- Placing Logo on the Top DockBar of the Frame Window Muscle Shoals AL
- Placing Logo on the Top DockBar of the Frame Window Northport AL
- Placing Logo on the Top DockBar of the Frame Window Opelika AL
- Placing Logo on the Top DockBar of the Frame Window Pelham AL
- Placing Logo on the Top DockBar of the Frame Window Pell City AL
- Placing Logo on the Top DockBar of the Frame Window Phenix City AL
- Placing Logo on the Top DockBar of the Frame Window Pinson AL
- Placing Logo on the Top DockBar of the Frame Window Prattville AL
- Placing Logo on the Top DockBar of the Frame Window Scottsboro AL
- Placing Logo on the Top DockBar of the Frame Window Selma AL
- Placing Logo on the Top DockBar of the Frame Window Semmes AL
- Placing Logo on the Top DockBar of the Frame Window Sylacauga AL
- Placing Logo on the Top DockBar of the Frame Window Talladega AL
- Placing Logo on the Top DockBar of the Frame Window Theodore AL
- Placing Logo on the Top DockBar of the Frame Window Trussville AL
- Placing Logo on the Top DockBar of the Frame Window Tuscaloosa AL
- Placing Logo on the Top DockBar of the Frame Window Tuscumbia AL
- Placing Logo on the Top DockBar of the Frame Window Valley AL
- Placing Logo on the Top DockBar of the Frame Window Wetumpka AL
Related Articles
- Code to View/Hide Status Bar in SDI and MDI Applications Alabama
Here's a little handler for the OnViewStatusBar message handler to change the "View/Hide Status Bar" menu option so that the application (main) window changes its height according to the size of the visible client area.
- List control with single / double separator lines Alabama
- Animated Background Banner Alabama
- Resizable Docking Window 2 Alabama
Related Local Events
December 2009 Gulf Coast Technology Council Meeting
Dates: 12/16/2009 - 12/16/2009
Location: ITT Technical Institute
Mobile, AL
View Details

Going Green Awards
Dates: 10/1/2009 - 10/1/2009
Location: Sheraton
North Birmingham, AL
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML