This control displays animated gifs with some limitations.
1) assumes a global color table
2) wont decode 'frame size optimisation'
3) because the iPicture is a bit slow, theres a steep curve between size,frame speed and choking up.
The majority of ani gifs are ok. those which fall into 1) and 2) can be loaded into a gif editor and re-saved with a global table and no frame optimisation.
Hope you find this useful.
dougiem.
http://www.dougiem.fsnet.co.uk/asm/GifAnimTest.zip 371k
:U Thanks. Real good.
I think the next improvement is to make the return value as a hBmp with the lenght and height structure.
Farabi,
The return value is the handle of the control, and can be used to get the dimentions by;
; SendMessage,hWin,WM_GIFGET,addr GIFstatus,0
;
; returns info in structure:
; GIFStatus struct
; gWidth dword ?
; gHeight dword ?
; gLoop dword ? number of loops
; gDelayTime2 dword ? the frame time of the second frame in the series
; GIFStatus ends
I have updated the code at the link above to include animated buttons.
dougiem.