Re: ImageList: Is this possible?
- From: "Peter Aitken" <paitken@xxxxxxxxxxxxx>
- Date: Mon, 9 May 2005 11:09:42 -0400
"Faraz Azhar" <itz_farazSPAM@xxxxxxxxxxxxxxx> wrote in message
news:OiT09KEVFHA.4000@xxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> I am thinking of storing all the icons/images used in my application in a
> separate file. That file will not be a dll or exe. It will be a custom
> data
> file in which I will store my images in my own way. Now I want to load
> them
> into the imagelist.
>
> Is it possible to load custom image data into imagelist without creating
> temporary picture files? Normally imagelist can only load data from a file
> path specified to it.. but I am talking about supplying actual binary data
> to the imagelist. Is it possible? Is there any way to create the
> hImageList
> handle (by the way, im creating imagelist through APIs, not using the
> standard control) by supplying binary data to it?
>
> Thank you
>
> Faraz Azhar
>
>
>
There's an API fiunction that lets you create a bitmap in memory:
Declare Function CreateDIBitmap Lib "gdi32" (ByVal hdc As Long, _
lpInfoHeader As BITMAPINFOHEADER, ByVal dwUsage As Long, lpInitBits As
Any, _
lpInitInfo As BITMAPINFO, ByVal wUsage As Long) As Long
Once you have this handle you might be able to pass it to the ImageList - I
am not sure about this part.
--
Peter Aitken
Remove the crap from my email address before using.
.
- Follow-Ups:
- Re: ImageList: Is this possible?
- From: Faraz Azhar
- Re: ImageList: Is this possible?
- References:
- ImageList: Is this possible?
- From: Faraz Azhar
- ImageList: Is this possible?
- Prev by Date: Re: Updating a record in Access using VB
- Next by Date: Re: MSCOMCTL.OCX
- Previous by thread: ImageList: Is this possible?
- Next by thread: Re: ImageList: Is this possible?
- Index(es):
Relevant Pages
|
Loading