CListExportDlg
G:\stock\TskingVS2019\src\Client\StkUI\Dialog\ListExportDlg.cpp
ID:
G:\stock\TskingVS2019\src\Client\StkUI\Dialog\ExportDest.cpp
1.导出文件名
void CListExportDlg::LoadProfile( )
{
// Initial Data
m_bTxtCheck = TRUE;
m_bExeOnFinish = TRUE;
m_bOverwrite = TRUE;
m_strTxtDest = AfxGetProfile().GetExportPath() + "StockList.txt";
m_strMdbDest = AfxGetProfile().GetExportPath() + "StockList.mdb";
m_strCsvDest = AfxGetProfile().GetExportPath() + "StockList.csv";
m_strODBCDest = "ODBC;DSN=Excel Files;DBQ="
+ AfxGetProfile().GetExportPath()
+ "StockList.xls;DefaultDir="
+ AfxGetProfile().GetExportPath()
+ ";DriverId=790;MaxBufferSize=2048;PageTimeout=5;";
m_bTxtCheck = AfxGetApp()->GetProfileInt( "listexportdlg", "txtcheck", m_bTxtCheck );
m_bMdbCheck = AfxGetApp()->GetProfileInt( "listexportdlg", "mdbcheck", m_bMdbCheck );
m_bCsvCheck = AfxGetApp()->GetProfileInt( "listexportdlg", "csvcheck", m_bCsvCheck );
m_bODBCCheck = AfxGetApp()->GetProfileInt( "listexportdlg", "odbccheck", m_bODBCCheck );
m_strTxtDest = AfxGetApp()->GetProfileString( "listexportdlg", "txtdest", m_strTxtDest );
m_strMdbDest = AfxGetApp()->GetProfileString( "listexportdlg", "mdbdest", m_strMdbDest );
m_strCsvDest = AfxGetApp()->GetProfileString( "listexportdlg", "csvdest", m_strCsvDest );
m_strODBCDest = AfxGetApp()->GetProfileString( "listexportdlg", "odbcdest", m_strODBCDest );
m_bExeOnFinish = AfxGetApp()->GetProfileInt( "listexportdlg", "exeonfinish", m_bExeOnFinish );
m_bOverwrite = AfxGetApp()->GetProfileInt( "listexportdlg", "overwrite", m_bOverwrite );
}