CToolbar and Common Control DLL

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.
cdm100497Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
galkinConnect With a Mentor Commented:
Sorry another mistake (I mean't MFC 4.21 not 2.1)
0
 
galkinCommented:
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
 
cdm100497Author Commented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
winmeisterCommented:
Yes,
the CToolbar class code has been written to produce the same functionality
0
 
galkinCommented:
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
 
cdm100497Author Commented:
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
All Courses

From novice to tech pro — start learning today.