Fix NULL window argument to wxEVT_KILL_FOCUS when creating a TLW.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Oct 2011 16:19:58 +0000 (16:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Oct 2011 16:19:58 +0000 (16:19 +0000)
commit8df14bedf50602c1882fdb318e310ace09284554
tree7da0c714c3fd458b3deba1006b61f9594704ebca
parent843101f7660e5e4411769c179398fbf172a441ff
Fix NULL window argument to wxEVT_KILL_FOCUS when creating a TLW.

wxTopLevelWindowMSW::CreateDialog first moved and resized the newly
created window and only then called SubclassWin(). Because native focus
change occurred when moving the window, HWND->wxWindow association
wasn't yet filled in and wxFindWinFromHandle() would return NULL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/toplevel.cpp