Jump to content

Set button image from ImageList


Andreik
 Share

Go to solution Solved by Yashied,

Recommended Posts

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.

Link to comment
Share on other sites

  • Solution
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...