I think I finally fixed activation behaviour under MSW - now focus is not given
to random window after you switch to/from a frame git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -178,9 +178,23 @@ void wxLogVerbose(const wxChar *szFormat, ...)
|
||||
if ( pLog != NULL && wxLog::IsAllowedTraceMask(mask) ) {
|
||||
wxCRIT_SECT_LOCKER(locker, gs_csLogBuf);
|
||||
|
||||
wxChar *p = s_szBuf;
|
||||
size_t len = WXSIZEOF(s_szBuf);
|
||||
strncpy(s_szBuf, _T("Trace ("), len);
|
||||
len -= 7; // strlen("Trace (")
|
||||
p += 7;
|
||||
strncat(p, mask, len);
|
||||
size_t lenMask = wxStrlen(mask);
|
||||
len -= lenMask;
|
||||
p += lenMask;
|
||||
|
||||
strncat(p, _T("): "), len);
|
||||
len -= 3;
|
||||
p += 3;
|
||||
|
||||
va_list argptr;
|
||||
va_start(argptr, szFormat);
|
||||
wxVsnprintf(s_szBuf, WXSIZEOF(s_szBuf), szFormat, argptr);
|
||||
wxVsnprintf(p, len, szFormat, argptr);
|
||||
va_end(argptr);
|
||||
|
||||
wxLog::OnLog(wxLOG_Trace, s_szBuf, time(NULL));
|
||||
|
Reference in New Issue
Block a user