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