send wxWindowCreateEvent from SubclassWin(), not WM_CREATE handler as we don't get WM_CREATEs for the windows of standard classes (last version of patch 1411774; closes bug 1349291)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-06 22:34:24 +00:00
parent 3f2174bb28
commit e7c652bc7a

View File

@@ -1042,6 +1042,10 @@ void wxWindowMSW::SubclassWin(WXHWND hWnd)
// simply check m_oldWndProc
m_oldWndProc = NULL;
}
// we're officially created now, send the event
wxWindowCreateEvent event((wxWindow *)this);
(void)GetEventHandler()->ProcessEvent(event);
}
void wxWindowMSW::UnsubclassWin()
@@ -3501,10 +3505,6 @@ bool wxWindowMSW::HandleCreate(WXLPCREATESTRUCT WXUNUSED_IN_WINCE(cs),
EnsureParentHasControlParentStyle(GetParent());
#endif // !__WXWINCE__
// TODO: should generate this event from WM_NCCREATE
wxWindowCreateEvent event((wxWindow *)this);
(void)GetEventHandler()->ProcessEvent(event);
*mayCreate = true;
return true;