-
March 11th, 2003, 10:55 AM
#1
directory browse
does anyone know of an API call to bring up a directory browse box.
-
March 11th, 2003, 10:58 AM
#2
Have a look at this article .
-
March 11th, 2003, 10:59 AM
#3
Hi,
Code:
BOOL GetOpenFileName(
LPOPENFILENAME lpofn // initialization data
);
Look in MSDN for details.
Regards,
Emanuel Vaduva
-
March 11th, 2003, 11:00 AM
#4
-
March 11th, 2003, 11:43 AM
#5
Code:
char szExtBuffer[MAX_PATH] = "";
OPENFILENAME ofn;
strcpy(szExtBuffer, "*.txt; *.log");
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = 0;
ofn.hInstance = 0;
ofn.lpstrFilter = 0;
ofn.lpstrCustomFilter = 0;
ofn.nMaxCustFilter = 0;
ofn.nFilterIndex = 0;
ofn.lpstrFile = szExtBuffer;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrFileTitle = 0;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = 0;
ofn.lpstrTitle = "Open file";
ofn.Flags = 0;
ofn.nFileOffset = 0;
ofn.nFileExtension = 0;
ofn.lpstrDefExt = 0;
ofn.lCustData = 0;
ofn.lpfnHook = 0;
ofn.lpTemplateName = 0;
// Open dialog
if(::GetOpenFileName(&ofn) == FALSE)
// Cancel pressed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|