report more information about the control whose creation failed in the assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,8 +154,13 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
|||||||
|
|
||||||
if ( !m_hWnd )
|
if ( !m_hWnd )
|
||||||
{
|
{
|
||||||
wxLogDebug(wxT("Failed to create a control of class '%s'"), classname);
|
#ifdef __WXDEBUG__
|
||||||
wxFAIL_MSG(_T("something is very wrong, CreateWindowEx failed"));
|
wxFAIL_MSG(wxString::Format
|
||||||
|
(
|
||||||
|
_T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"),
|
||||||
|
classname, style, exstyle
|
||||||
|
));
|
||||||
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user