Jump to content
Sign in to follow this  
Andreik

Set button image from ImageList

Recommended Posts

Andreik

I have an ImageList with 8 image handles and I would like to set an image at every 2 seconds to a button. As is described in help file, _GUICtrlButton_SetImageList() would associate the images from image list with button states and if I use _GUICtrlButton_SetImage() I need a file path instead of handle, and this is not what I need.

I tried to get every 2 seconds the image handle from image list with _GUIImageList_GetImageInfoEx() and then to send a BM_SETIMAGE to the button but I think the handle is invalid because I get just a black button.

Any ideas?

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites
Yashied

Share this post


Link to post
Share on other sites
Andreik

Thank you, it works like a charm. :)


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×