OSDGetStartPosition
If the dialog allowed selecting several files (OFN_ALLOWMULTISELECT bit was set in dwFlags parameter when calling OSDInit()), this function allows getting the descriptor of the first selected file.
OSDRET OSDGetStartPosition(HANDLE hDialog, OSD_POSITION* pos);
Parameters
- hDialog - Dialog window descriptor.
- pos - Points at the file descriptor; NULL, if the list is empty (OSD_POSITION type is equivalent to standard POSITION type).
- Returned value - Returns operation result of OSDRET type.
Notes
The file descriptor returned by this function is used to navigate the list of selected files, getting file paths and loading images (OSDGetNextPathName(), OSDGetNextFileHBITMAP() и OSDGetNextPathNameAndFileHBITMAP() functions).
Sample
OSDGetStartPosition(hDialog,&position);
