Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem subclassing progress bar in ocx

Posted on 1998-06-10
2
Medium Priority
?
196 Views
Last Modified: 2013-11-20
I have created an activex (ocx) in vc5 with
default wizard options except it subclasses
the progress bar common control.

I tested this control in VB's IDE and it
worked correctly. However when I compile
the VB program I get error 0x80004005. I
found I could get around this by including
a hidden progress bar on the form.

I have traced the error in VC and it seems
that the controls window is not created.

Has anybody seen a similar problem?

Is there some kind of initialisation or
registering required for the common
control dll?

0
Comment
Question by:chris_a
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1317828
Try adding InitCommonControls() in your application's constructor.


0
 
LVL 2

Author Comment

by:chris_a
ID: 1317829
Spot on, how could I have missed it?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

926 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