[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Need a bitmap handle (HBITMAP

theboss

10/28/2004 9:36:00 PM

Hi,

I'm using P/Invoke and need an HBITMAP in a structure when I send a
message to htmlview.dll (to display an image). In the Compact
Framework, I read the bitmap from a stream, but then the Bitmap class
doesn't make available the handle.

I've looked in the SDF, but the closest thing I find there is
obtaining the handle by invoking a DLL entry point that loads the
bitmap from a file. In newsgroups, I find some postings referring to
the OpenNetCF.WinAPI and utilizing the CallThunk class (and an
InMemoryBitmap class), but this is no longer available as part of the
SDF. Can someone tell me how to come up with the handle? Ofcourse,
any source code snippets would be greatly appreciated!

thanks,
George