Solved

CToolbar and Common Control DLL

Posted on 1997-12-15
6
278 Views
Last Modified: 2013-11-19
I was wondering whether the CToolbar is linked into the Common Control DLL Toolbar Control or whether the code has been duplicated.

The reason for the question is that I can modify the CToolbar control to produce a flat style but when I attempt this with a VB project using the Toolbar control it is not possible.
0
Comment
Question by:cdm100497
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:galkin
ID: 1312312
Yes toolbar control is part of common control and implemented in comctl32.dll. To take advantage of new common controls and modifications of the old one(like flat style of tool bar) you need appropriate header and lib files in addition to new dll version. To use flat style you need comctl32.dll version 4.70 or higher( it comes with Developer Studio or Internet Explore 3.0 or higher).
0
 

Author Comment

by:cdm100497
ID: 1312313
Sorry, I would like to know if the CToolbar class implementation is based around the actual common control or whether they have written there own code to produce the same functionality.
0
 
LVL 1

Expert Comment

by:winmeister
ID: 1312314
Yes,
the CToolbar class code has been written to produce the same functionality
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 7

Expert Comment

by:galkin
ID: 1312315
Opps... Sorry I should have stated that I was using MFC 2.1, According to Galkin's comment. The Answer is yes to the original question...

Points goto Galkin when he answers the question.
0
 

Author Comment

by:cdm100497
ID: 1312316
I am sorry I have not worked with MFC 2.1 for a long time. Look at CToolBar::Create implementation. If inside this function toolbar window is created using comctl32.dll class TOOLBARCLASSNAME it means this class simply wrapps toolbar common control. If MFC registers its own class it means MFC fully implements toolbar control.
0
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1312317
Sorry another mistake (I mean't MFC 4.21 not 2.1)
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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

21 Experts available now in Live!

Get 1:1 Help Now