CreateToolBarEx  API code example in VB !

Posted on 2006-06-04
Medium Priority
Last Modified: 2011-09-20

I have looked everywhere and I coudn't find a single VB code to demonstrate how to use this API function :( ...all I have found is some snippets but written in C.

MSDN code samples are also in C not VB .what a shame :(

Basically, I want to create a toolbar from scrach using this API or CreateWindowEx but I don't know how.

Anyone has or has ever seen a VB  code snippet that makes use of either of the two above API functions for creating a ToolBar ?

Question by:RAFAAJ
LVL 28

Accepted Solution

AzraSound earned 1000 total points
ID: 16828728

It's a full control, so there may be a lot of extra you aren't interested in.  I looked at the source real quick and see he used CreateWindowEx in a CreateToolbar function he wrote here:


Author Comment

ID: 16831955
Thanks AzraSound.

This is an extremely long code which makes it difficult to follow. I was hoping to get a shorter and more digestable demo code so I could understand the basics for creating a ToolBar using the CreateToolBarEx or CreateWindowEx APIs.


Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

850 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