File dialog
-
I dont known how to use file dialog controls.Give me the example how to use the control.
-
I dont known how to use file dialog controls.Give me the example how to use the control.
What control in the File dialog do you wish to use?
Owner drawn Jesus Loves
-
I dont known how to use file dialog controls.Give me the example how to use the control.
U can use CFileDialog MFC class, just search google to find example of CFileDialog
-
What control in the File dialog do you wish to use?
Owner drawn Jesus Loves
i wish to use open dialog control:((.so give me the code in api.please help me.
-
U can use CFileDialog MFC class, just search google to find example of CFileDialog
i wanted to use open dialog control in api.
-
i wish to use open dialog control:((.so give me the code in api.please help me.
There is no Open Dialog Control. But I guess you would like to use the
CFileDialog
class.CFileDialog cfd(TRUE); if(cfd.DoModal() == IDOK) MessageBox(cfd.GetPathName());
Owner drawn Jesus Loves
-
i wish to use open dialog control:((.so give me the code in api.please help me.
This is how we do it with
OPENFILENAME
: From MSDN:OPENFILENAME ofn; // common dialog box structure char szFile[260]; // buffer for file name HWND hwnd; // owner window HANDLE hf; // file handle // Initialize OPENFILENAME ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hwnd; ofn.lpstrFile = szFile; // // Set lpstrFile[0] to '\0' so that GetOpenFileName does not // use the contents of szFile to initialize itself. // ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = sizeof(szFile); ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST; // Display the Open dialog box. if (GetOpenFileName(&ofn)==TRUE) ::MessageBox(NULL, ofn.lpstrFile, "File Open", MB_OK);
Owner drawn Jesus Loves