void ShowInfo(TCHAR *lpFormat, ...);
inline void CSetupDlg::ShowInfo(TCHAR *lpFormat, ...)
{TCHAR cBuffer[1024] = {0};
va_list argList;
va_start(argList, lpFormat);
#ifdef _UNICODE
vswprintf(cBuffer, lpFormat, argList);
#else
vsprintf(cBuffer, lpFormat, argList);
#endif
va_end(argList);
m_edtInfo.SetSel(-1, -1, TRUE); //自动滚屏
_tcscat( cBuffer, _T("\r\n") );
#ifdef _DEBUG
TRACE ( cBuffer );
#endif
m_edtInfo.ReplaceSel( cBuffer ); //自动换行
}
this->ShowInfo( _T("BinFile load(%s)...ret:%d"), m_strDirDes, nRet );
ShowInfo( _T("检测到 %d 个目录及相应的配置文件..."), nCount );
this->ShowInfo( _T("PackFile AddBinFile(0x%x, %s)...ret:%d"), pBinFile, lpBinFileName, bRet );

被折叠的 条评论
为什么被折叠?



