J
j.edwards
I currently have some custom controls in a vb.net class library that use
native Win32 GDI calls instead of the GDI+ stuff as I found that way too
slow. The only way I know to get a HBITMAP required for win32 calls is to
use SHLoadImageFile() from aygshell - and that's been working well. However,
I now want to have the various images the controls need (such as a down
arrow) stored as resources within the class library rather than being
messily scatted about in the file system.
The loading of resources is working fine - I can have a bitmap as "Embedded
Resource" and load it's data into a stream, array of bytes, or whatever
else. But how can I convert the bitmap file data into an actual bitmap with
a HBITMAP handle? It looks like CreateDIBitmap is what I need but it's not
available in the pocket pc windows.
native Win32 GDI calls instead of the GDI+ stuff as I found that way too
slow. The only way I know to get a HBITMAP required for win32 calls is to
use SHLoadImageFile() from aygshell - and that's been working well. However,
I now want to have the various images the controls need (such as a down
arrow) stored as resources within the class library rather than being
messily scatted about in the file system.
The loading of resources is working fine - I can have a bitmap as "Embedded
Resource" and load it's data into a stream, array of bytes, or whatever
else. But how can I convert the bitmap file data into an actual bitmap with
a HBITMAP handle? It looks like CreateDIBitmap is what I need but it's not
available in the pocket pc windows.