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
}
#endif // !__WXWINCE__
+ if ( !title.empty() )
+ {
+ ::SetWindowText(GetHwnd(), title.wx_str());
+ }
+
+ SubclassWin(m_hWnd);
+
#if !defined(__WXWINCE__) || defined(__WINCE_STANDARDSDK__)
// move the dialog to its initial position without forcing repainting
int x, y, w, h;
}
#endif // !__WXWINCE__
- if ( !title.empty() )
- {
- ::SetWindowText(GetHwnd(), title.wx_str());
- }
-
- SubclassWin(m_hWnd);
-
#ifdef __SMARTPHONE__
// Work around title non-display glitch
Show(false);