CTreeCtrl
-
Hi, I set BOLD the selected item (using TVIS_BOLD), but when I de-select it I'm not able to reset the previews font (Non-Bold). How can I perform this?
-
You have to clear the
TVIS_BOLD
flag bit. UseSetItemState()
with zero as the state andTVIS_BOLD
as the mask.
Darker than a black steer's tookus on a moonless praire night
Within you lies the power for good, use it!!!
-
You have to clear the
TVIS_BOLD
flag bit. UseSetItemState()
with zero as the state andTVIS_BOLD
as the mask.
Darker than a black steer's tookus on a moonless praire night
Within you lies the power for good, use it!!!
you have to know what item (HTREEITEM) was selected to be able to deselect it. As I understand the OP, he want to bold the selected item, and if he clicks on another item, it will/should deselect (unbold) the previous item and select (bol) the new one.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
you have to know what item (HTREEITEM) was selected to be able to deselect it. As I understand the OP, he want to bold the selected item, and if he clicks on another item, it will/should deselect (unbold) the previous item and select (bol) the new one.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
Thanks a lot it's work fine. Another question.. and If I need to set BOLD the item only if it haven't no child and reset it only if the new selected item hasn't no child too?? I hope to explain well my doubt.