Solved

CToolbar and Common Control DLL

Posted on 1997-12-15
6
293 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
has22 challenge 11 105
tripleUp challenge 7 86
pre4 challenge 19 104
fix34  challenge 9 144
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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