New, sligthly better patch. Wierdly calling AllocateHWnd and then ReleaseHWnd (on 2 separate buttons to get some time between) will crash the app, but debugging I see that CreateWindowEx suceeds, and also does setwindowlong, because the callback is called.
-- Felipe Monteiro de Carvalho
allocatehwnd.patch
Description: Binary data
