Click here to Skip to main content
11,639,765 members (60,098 online)
Click here to Skip to main content
Add your own
alternative version

Remote Processes and Machine control of Windows NT based systems (2000/XP)

, 1 Apr 2012 CPOL 128.4K 8.4K 103
Control certain aspects of machines sitting remotely, without having to install and trigger an application on the remote machine.
// ProgressWndThread.cpp : implementation file

#include "stdafx.h"
#include "RemoteAdmin.h"
#include "ProgressWndThread.h"
#include "ProgressDlg.h"
#include "RemoteAdminDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

IMPLEMENT_DYNCREATE(CProgressWndThread, CWinThread)



BOOL CProgressWndThread::InitInstance()
	CProgressDlg* pDlg = new CProgressDlg;
	pDlg->SetTimer(TIMER_STEP, 100, NULL);
    pDlg->SetProgressText(_T("Please wait....."));
    pDlg->SetDlgTitle(_T("Connection progress"));
	// Assign the thread window, with this dialog
	m_pMainWnd = pDlg;

    return TRUE;

int CProgressWndThread::ExitInstance()
	// TODO:  perform any per-thread cleanup here
	return CWinThread::ExitInstance();

void CProgressWndThread::SetDocument(CRemoteAdminDoc* pRemoteAdminDoc)

	m_pRemoteAdminDoc = pRemoteAdminDoc;

void CProgressWndThread::SetProgressText(CString strDlgProgressTxt)
	CProgressDlg* pDlg = static_cast<CProgressDlg*>(m_pMainWnd);

BEGIN_MESSAGE_MAP(CProgressWndThread, CWinThread)
		// NOTE - the ClassWizard will add and remove mapping macros here.

// CProgressWndThread message handlers

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Prateek Kaul
Web Developer
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150731.1 | Last Updated 1 Apr 2012
Article Copyright 2003 by Prateek Kaul
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid