Hi!!
What is it wrong with this code? The image does not appear when the tree list is displayed.
int m_intItemIndex;
if ( !g_intTreeIndex ) {
int m_intBmFolder;
GetBitmapFromFile ("c:\\gdt\\HorusDS\\icons\\dataSourceList\\closedfoldericon.ico", &m_intBmFolder);
g_intIndexOpen = AddTreeImage (p_intDSPanelHandle, p_intDSControlHandle, m_intBmFolder); // Adds an image of open folder to the tree control.
DiscardBitmap (m_intBmFolder);
}
m_intItemIndex = InsertTreeItem(p_intDSPanelHandle, p_intDSControlHandle, VAL_SIBLING, 0, VAL_LAST,
p_chrBufferProviderList, NULL, NULL, g_intTreeIndex);
SetTreeItemAttribute(p_intDSPanelHandle, p_intDSControlHandle, m_intItemIndex, ATTR_MARK_TYPE, VAL_MARK_NONE);
SetTreeItemAttribute (p_intDSPanelHandle, p_intDSControlHandle, m_intItemIndex, ATTR_IMAGE_INDEX, g_intIndexOpen);
SetTreeItemAttribute (p_intDSPanelHandle, p_intDSControlHandle, m_intItemIndex, ATTR_COLLAPSED_IMAGE_INDEX, g_intIndexOpen);Thank you in advance!