LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to relate toolbar control with imagelist control?

I create two ActiveX control in .UIR file:a toolbar control with ten buttons and a imagelist control with ten images,How to make the toolbar displaying the images of the imagelist control?

Thanks!
0 Kudos
Message 1 of 2
(2,560 Views)
Hello,

First you need to include the Microsoft Windows Common Controls instrument in your CVI project so you can access the necessary functions to control the ImageList and Toolbar controls (Tools >> Create ActiveX Controller). From the programming side, I would suggest searching MSDN, etc for example programs on how to use an ImageList and Toolbar. As a starting point,
I would suggest taking a look at the MSComctlLib_IImageListGetListImages and MSComctlLib_IToolbarSetImageList functions.

Thanks.
0 Kudos
Message 2 of 2
(2,546 Views)