From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How activex treeview associate imagelist in cvi?

Hello, I want to associate treeview with imagelist use follow code "
GetObjHandleFromActiveXCtrl (hpanel, PANEL_TREEVIEW, &hTreeView);
GetObjHandleFromActiveXCtrl (hpanel, PANEL_IMAGELIST, &hImageList);
MSControls_SetITreeViewPropertyByRef (hTreeView, NULL, MSControls_ITreeViewImageList, CAVT_OBJHANDLE, hImageList);"
but it doesn't work . who can help me? I want an example. Thanks a lot.
0 Kudos
Message 1 of 3
(2,553 Views)
Hello

Check out this post here

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,553 Views)
That is too simple. Now I have known the problem. use "MSControls_SetITreeViewProperty" function replace "MSControls_SetITreeViewPropertyByRef", so it's ok.
0 Kudos
Message 3 of 3
(2,553 Views)