I am working with WPD (Windows Portable Devices) API, and I have a problem. I have obtained images, video, mp3 objects on a device, and now I want to show a thumbnail of images on CListCtrl
. I have used the following to get Stream
of image objects:
pd_resource->GetStream(objectID,WPD_RESOURCE_THUMBNAIL, STGM_READ, &optimal_transfer_size, &src_data_stream)
How do I convert this Stream
resource to CBitmap
?
Please help me! Thanks so much!