Since we are talking about folder browsing, we can review how to do file saving and opening.
First, small device...
void CXXDlg::OnBnClickedBtnConfig()
{
// TODO: Add your control notification handler code here
TCHAR tFileName[MAX_PATH+1] = TEXT("\0");
OPENFILENAME ofn;
memset(&ofn, 0, sizeof(ofn));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = this->m_hWnd;
ofn.lpstrFile = tFileName;
ofn.lpstrFilter = TEXT("Cam Config\0*.c2t\0All Files (*.*)\0*.*\0");
ofn.nFilterIndex = 0;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrInitialDir = TEXT("\\SystemCF");
ofn.lpstrTitle = TEXT("Cam Config File Open Dialog");
ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST;
ofn.lpstrDefExt = TEXT("c2t");
GetOpenFileName(&ofn);
sStatus.Format(_T("%s"),tFileName );
UpdateData(FALSE);
}
similar, GetSaveFileName(..)..
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(13)
-
▼
May
(12)
- MessageBox with more options in C#
- Error Report Example in C#
- Error Report Example in C++
- Ascii to Hex in C#
- Hex to Ascii Conversion in C#
- C# File Open, Save in .Net Framework and Compact F...
- C++ File Open, save in .Net Compact Framework
- How to do a folder browing in .Net Compact Framework?
- Folder Browsing --- Easy way 2
- Folder Browsing --- Easy way 1
- Microsoft way to do folder browsing
- How to do a folder browsing in C#?
-
▼
May
(12)
No comments:
Post a Comment