rabbott
asked on
dynamic creation of ActiveX?
What i've got is this home grown script file that reads in prog ID's and their properties. I want a container to basically take those prog ID's create my ActiveX object and set their properties dynamically on the fly. Right now I'm trying the method where I get the dispatch interface from CommandTarget in the COleClientItem::OnActivate UI() and set the properties on what I want...I was wondering if anybody has a better solution to this problem...I also have a action events for object in the scripts. The only examples I've seen for containers is that they include the ActiveX object in their program through the Component Gallery, and then It hard codes the disp IDs into the CWnd derived class, what I was thinking was I can create a CWnd derived class, and basically CreateControl() on all of my ActiveX objects and use that class to maintain my controls...Any input or code would be appreciated...Thanks...my email is rabbott@amered.com if someone wants to email me...
ASKER
OK..What I've done is derive A Class from CWnd...Basically putting everything I need in the control class to load up the ActiveX and set some properties and stuff. The problem i'm having is that I don't know how to set the UserMode of the container. I notice if I use the ActiveX Test Container and you build a generic MFC ActiveX component and insert it into that, you get the edit nodes and hatchings around your control..I want to be able to do this. Seems like mines always stuck in playmode. Their are times when I would like to be able to edit the control and times to play it back. If you can help me with that I would appreciate it...Thanks
Richard
Richard
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I haven't completely understand ur problem. Can u please explain ur problem?