OSDGetNextFile
HBITMAP
This function loads image from the next selected file in the list.
OSDRET OSDGetNextFileHBITMAP(HANDLE hDialog,»
OSD_POSITION* pos, HBITMAP* hBmp);
* The red "ยป"mark in the sample means line folding. This is only done for convenient display of the source code at our website. When reproducing this sample, delete this mark and join the code lines separated by it.
Parameters
- hDialog - Dialog window descriptor.
- pos - Points at the file descriptor received when calling OSDGetStartPosition() (OSD_POSITION type is equivalent to standard POSITION type).
- hBmp - Points at HBITMAP used to load the image to. Returns NULL if the function fails.
- Returned value - Returns operation result of OSDRET type.
Notes
OSDGetNextPathName() and OSDGetNextPathNameAndFileHBITMAP() functions are also used to work with the file list.
Sample
OSDGetNextFileHBITMAP(hDialog,&position,&hBitmap);
