当文档中,我需要截屏并保存在用户选择的路径,保存为用户输入的名字,但我在获取了用户保存路径以后截屏,就把对话框一起给保存下来了,要怎么改才能在对话框消失以后再保存呢?我用延时也不得行的。if( IDOK==CFileDlg.Domodal() )
{
m_savePath=CFileDlg.GetFilePath();
}
Delay( 500 ); //在此处延时,但没作用SaveBitmapToFile( m_savePaht );
{
m_savePath=CFileDlg.GetFilePath();
}
Delay( 500 ); //在此处延时,但没作用SaveBitmapToFile( m_savePaht );
时间太短....
{
m_savePath=CFileDlg.GetFilePath();
} InvalidateRect(NULL);SaveBitmapToFile( m_savePaht );