Activex control
-
Hello all, I have an Activex Control in vc++ 6.0.It is a player plays cam files. I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished.
LRESULT CHttpDownloadDlg::OnThreadFinished(WPARAM wParam, LPARAM /*lParam*/) { m_bSafeToClose = TRUE; m_ctrlAnimate.Stop(); if (m_bAbort) EndDialog(IDCANCEL); else if (wParam) { AfxMessageBox(m_sError); EndDialog(IDCANCEL); } else EndDialog(IDOK); return 0L; }
OnThreadFinished is for closing the dialog after the cam file downloads fully. 1.Is ther any method to close the dialog while downloading the file. Help me please and give me ur suggestions. thanks in advance Sunita -
Hello all, I have an Activex Control in vc++ 6.0.It is a player plays cam files. I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished.
LRESULT CHttpDownloadDlg::OnThreadFinished(WPARAM wParam, LPARAM /*lParam*/) { m_bSafeToClose = TRUE; m_ctrlAnimate.Stop(); if (m_bAbort) EndDialog(IDCANCEL); else if (wParam) { AfxMessageBox(m_sError); EndDialog(IDCANCEL); } else EndDialog(IDOK); return 0L; }
OnThreadFinished is for closing the dialog after the cam file downloads fully. 1.Is ther any method to close the dialog while downloading the file. Help me please and give me ur suggestions. thanks in advance SunitaCreate a dialog having a progress bar. In Its OnInitDialog start a thread to update the progress bar. Set the progress bar initalizations in OnInitDialog. The thread fun must have a infinite loop and setPos fun to update the progress bar. From downloading thread update the progress bar value using a static variable and use this var to update the bar in Thred fun() and when this value become 100 or like u can call end dialog which will close the progress dialog.