Question

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!

Was it helpful?

Solution

I have found a resource here that shows how to convert IStream to HBITMAP.

Hope this helps: http://mariusbancila.ro/blog/2011/08/04/display-images-as-you-type-in-cpp/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top