Link to home
Start Free TrialLog in
Avatar of cdm100497
cdm100497

asked on

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.
Avatar of galkin
galkin

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).
Avatar of cdm100497

ASKER

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.
Yes,
the CToolbar class code has been written to produce the same functionality
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of galkin
galkin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial