IsWindow(activeX.GetSafeHwnd()) always false after upgrade to VS2010
问题 I have an MFC application that uses an ancient (circa 1999) third-party ActiveX control. Since upgrading the project from VS2008 to VS2010, I'm having problems... In the OnSize handler of the parent dialog IsWindow always returns false for the handle returned by control.GetSafeHwnd(), even when GetSafeHwnd() returns a non-NULL value. The rest of the control's parent dialog is displayed fine, but it doesn't seem to respond to any input. I've seen this article, but GetSafeHwnd() isn't returning