CWnd::PreCreateWindow was changed in visual studio to assign the hMenu member of the CREATESTRUCT to "this" if the menu is NULL and the style has WS_CHILD. Custom controls that use the WS_CHILD style are now failing to create (via CWnd::CreateEx) because the hMenu value is being set to an invalid value during PreCreateWindow. The code in question in CWnd::PreCreateWindow is: if ((cs.hMenu == NULL) && (cs.style & WS_CHILD)) { cs.hMenu = (HMENU)(UINT_PTR)this; }This code is not in VS2008.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...