I noticed if a create an ActiveX control with an MFC CWnd and call ShowWindow(SW_HIDE) or SetWindowPos to hide the window the internal m_hWnd of the class is set to NULL.
Debugging into MFC revealed that some sort of "OLE Verb" was being executed on the object, which I think indirectly is nulling out my handle.
Anyone know why?
ModifyStyle(WS_VISIBLE, 0) works fine.