use wxLogLastError() to show the last error value when reporting failure to create a control (replaces patch 1890940)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,11 +153,11 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
||||
if ( !m_hWnd )
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
wxFAIL_MSG(wxString::Format
|
||||
(
|
||||
_T("CreateWindowEx(\"%s\", flags=%08x, ex=%08x) failed"),
|
||||
classname, (unsigned int)style, (unsigned int)exstyle
|
||||
));
|
||||
wxLogLastError(wxString::Format
|
||||
(
|
||||
_T("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx)"),
|
||||
classname, style, exstyle
|
||||
));
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user