OSDGetFileTitle
This function allows getting the name of user-selected file without its path or extension.
OSDRET OSDGetFileTitle(HANDLE hDialog, char* buf, int* size);
Parameters
- hDialog - Dialog window descriptor.
- buf - Points at the text buffer used to save the file name.
- size - Specifies text buffer size when the function is called and saved name length when the function quits its work.
- Returned value - Returns operation result of OSDRET type.
Notes
OSDGetFileName() and OSDGetFileExt() functions are also used to work with file names.
Sample
OSDGetFileTitle(hDialog, szFileBuff,&nSize);
