I am trying to create ActiveX controls from within an application without using the wrapper classes. When I get hold of the Interface pointer for the control, how can I convert it into a CWnd pointer (as the wrapper classes do) to place the control on a dialog box.

Has anyone got any sample code which can do this?


Thanks.