Log the length of the window label if creating it fails in wxMSW
This can be useful in case of unexpected window creation failure, so log it because it doesn't cost much for something that is supposed to practically never happen anyhow.
This commit is contained in:
parent
a7f5e3c5c3
commit
a8c05945b4
@ -4049,8 +4049,8 @@ WXHWND wxWindowMSW::MSWCreateWindowAtAnyPosition(WXDWORD exStyle, const wxChar*
|
||||
{
|
||||
wxLogLastError(wxString::Format
|
||||
(
|
||||
wxT("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx)"),
|
||||
clName, style, exStyle
|
||||
wxT("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx, title-len=%zu)"),
|
||||
clName, style, exStyle, title ? wxStrlen(title) : 0
|
||||
));
|
||||
}
|
||||
else if ( !IsTopLevel() && !MSWIsPositionDirectlySupported(x, y) )
|
||||
|
Loading…
Reference in New Issue
Block a user