[code]CFileDialog m_ldFile(TRUE);
// Set the current directory
//m_ldFile.m_ofn.lpstrInitialDir = "C:\\Temp\\";
// Show the File Open dialog and capture the result
if (m_ldFile.DoModal() == IDOK)
{
// Get the file name selected
m_sResult = m_ldFile.GetPathName();
// Update the dialog
UpdateData(FALSE);
}[/code]
// Set the current directory
//m_ldFile.m_ofn.lpstrInitialDir = "C:\\Temp\\";
// Show the File Open dialog and capture the result
if (m_ldFile.DoModal() == IDOK)
{
// Get the file name selected
m_sResult = m_ldFile.GetPathName();
// Update the dialog
UpdateData(FALSE);
}[/code]
'Windows > MFC' 카테고리의 다른 글
다이얼로그 띄우기 (0) | 2013.10.02 |
---|---|
공통 다이얼로그 함수 (0) | 2013.10.02 |
한줄씩 파일 읽기 (0) | 2013.10.02 |
윈도우 종류알기 OSVERSIONINFO (0) | 2013.10.02 |
윈도우 종료 (Windows 2k) (0) | 2013.10.02 |