dear all,I have a question,when I write files,like pdf,i want to popup a dialog with animation to show
that the writing operation is working.
I don't know how to do with that ,it may need a avi file ,use CAnimateCtrl,is it need multithread,please
help me.this is my code
// TODO: Add your command handler code here
ExPro = new CExportPro();
CFileDialog dlg(FALSE,TEXT("txt"),NULL,OFN_HIDEREADONLY|OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_OVERWRITEPROMPT,_T("TXT (*.txt) |*.txt|"));
filePath = dlg.GetPathName();
m_filepathname = dlg.GetPathName();
if ( !filePath.IsEmpty())
CString str(TEXT("hello this is the test for write process"));
Perform all your file writing operations in a background thread, and compute and post messages on the operation progress from the worker thread to your main window. Your main window procedure should handle this message and display the progress accordingly.
Thanks,but I use CAnimateCtrl,this is a control,I initial it in dialog CExportPro::OnInitDialog(),I think
when modalless diaolog appear,the control should be appear ,but the fact is that when writing it appear modalless diaolog without CAnimateCtrl,and after writing,the CAnimateCtrl show,why,it maybe the thread
hang_up.how to do with it.
Last Visit: 31-Dec-99 18:00 Last Update: 15-Sep-14 11:22