By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,421 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,421 IT Pros & Developers. It's quick & easy.

How do I Dynamically Add ActiveX Controls to a CWnd.

P: n/a
In the header file of a class Derived from a CWnd class I have
imported the OCX.

#import "msvbvm60.dll" rename("RGB", "myRGB") rename("EOF","myEOF")
#import "GSEgrids.ocx"

And created a pointer to the OCX

GSEGrids::_GSEbaseGridPtr m_GSEBaseGrid;

Then in the inilization of my cWnd class I have create an instance of
the OCX

m_GSEBaseGrid.CreateInstance("GSEGrids.GSEbaseGrid ");

After executing the above I can access all of the methods and
properties of the OCX with no problem.

The problem is I can't see how to make the OCX visible in my cWnd
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.