git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24483
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <stdio.h>
#include "wx/app.h"
+#include "wx/apptrait.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/utils.h"
}
else // do run thread
{
- HAB vHab;
- vHab = ::WinInitialize(0);
+ wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL;
+ unsigned long ulHab;
+ if (traits)
+ traits->InitializeGui(ulHab);
dwRet = (DWORD)pThread->Entry();
- ::WinTerminate(vHab);
+ if (traits)
+ traits->TerminateGui(ulHab);
// enter m_critsect before changing the thread state
pThread->m_critsect.Enter();