#include "creator_thread.h" CreatorThread::CreatorThread(Dialog *d) : wxThread() { m_dialog = d; } void CreatorThread::OnExit() { } wxThread::ExitCode CreatorThread::Entry() { int i; for (i = 0; i<=100; i++) { wxMutexGuiEnter(); m_dialog->SetProgress(i); wxMutexGuiLeave(); wxMilliSleep(100); } return NULL; }