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