Placing Logo on the Top DockBar of the Frame Window North Dakota

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

Local Companies

PCs For Parents
800-998-8652
1506 16th St S
Fargo, ND
Atlas Business Solutions, inc. (ABS)
800-874-8801
3330 Fiechtner Drive SW
Fargo, ND
D F C Consultants Ltd
(701) 483-6872
100 S State Ave
Dickinson, ND
Computerware
(701) 780-9704
4216 Gateway Dr
Grand Forks, ND
Enterprise Solutions Inc
(701) 224-9234
1605 E Capitol Ave
Bismarck, ND
Intelligent InSites
(701) 893-2080
102 Broadway
Fargo, ND
Atlas Business Solutions
701-235-5226
3330 Fietchner Dr.
Fargo, ND
Stratacom
(701) 232-8847
1316 23rd St S
Fargo, ND
High Plains Technology
(701) 271-1555
1351 Page Dr S Ste 106
Fargo, ND
Technology Solutions Group
(701) 365-1600
Fargo, ND

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

Intelligent InSites

7018932080
102 Broadway
Fargo, ND


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