// CMultiThread5Dlg dialog
struct threadInfo
{
	UINT nMilliSecond;
	CProgressCtrl* pctrlProgress;
};

threadInfo Info;
UINT ThreadFunc(LPVOID lpParam)
{
	threadInfo* pInfo=(threadInfo*)lpParam;
	for(int i=0;i<100;i++)
	{
		int nTemp=pInfo->nMilliSecond;
		
		pInfo->pctrlProgress->SetPos(i);
		
		Sleep(nTemp);
	}
	return 0;
}

void CMultiThread5Dlg::OnStart() 
{
	UpdateData(TRUE);
	Info.nMilliSecond=m_nMilliSecond;
	Info.pctrlProgress=&m_ctrlProgress;
	
	pThread=AfxBeginThread(ThreadFunc,&Info);
	// TODO: Add your control notification handler code here
	
}