I have a Windows form user control that is made COM visible. Now I want to embed that control into an ATL dialog GUI.
The ATL project (unmanaged C++) shall only get the progID of the winform and dynamically create and embed it at runtime.
Is this possible and if so, how do I do it?
I figured out a way to get it to work.
The following code is using a CWnd called m_Control that is made to host a winform via a little documented version of CreateControl. Seems to work fine so far. If anyone sees any drawbacks, please comment or respond.