// MedialThread.cpp : implementation file // #include "stdafx.h" #include "MedialThread.h" // MedialThread IMPLEMENT_DYNCREATE(MedialThread, CWinThread) MedialThread::MedialThread() { } MedialThread::~MedialThread() { } BOOL MedialThread::InitInstance() { BOOL ret; MedialDialog* MedialDlg; MedialDlg = new MedialDialog(); //Check if new succeeded and a valid pointer to a dialog object is //created. if(MedialDlg != NULL) { ret = MedialDlg->Create(IDD_MEDIALDIALOG, MedialDlg); if(!ret) //Create failed. AfxMessageBox("Error creating medial axis dialog"); MedialDlg->ShowWindow(SW_SHOW); } else AfxMessageBox("Error Creating Dialog Object"); m_pMainWnd = MedialDlg; return TRUE; } int MedialThread::ExitInstance() { // TODO: perform any per-thread cleanup here return CWinThread::ExitInstance(); } BEGIN_MESSAGE_MAP(MedialThread, CWinThread) END_MESSAGE_MAP() // MedialThread message handlers