I'm struggling to get bold items in my Tree-view. I'm working on a C project using the standard Windows API. The MSDN Library states that the TVIS_BOLD state would set the item to bold but apparently I couldn't get it to work.
So far I've been trying to accomplish that with the following:
I also changed the items label programmatically by usingCode:tvitem.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_STATE; tvitem.stateMask = TVIS_STATEIMAGEMASK; tvitem.state = INDEXTOSTATEIMAGEMASK(ITEMPIC_NR) | TVIS_BOLD; ... item_handle = TreeView_InsertItem(hwndl, &tvinsert);
but this didn't help to change the item to bold.Code:TreeView_SetItem(hwnd, &tvitem);
Any help is much appreciated. Thanks in advance.