I have subclassed a treeview, and am trying to detect when an (any) node goes bold. I tried:
static int CALLBACK SubTreeProc(HWND hWnd, UINT wMessage, WPARAM wParam, LPARAM lParam)
{
LRESULT result;
HTREEITEM hParent;
result = CallWindowProc(g_OrgProc, hWnd, wMessage, wParam, lParam);
if(wMessage == WM_NOTIFY){
LPNMTREEVIEW nmtv = (LPNMTREEVIEW)lParam;
if(nmtv->hdr.code == TVN_SETDISPINFO) {
MessageBox (NULL, "SetDispInfo!!" , "bkSortFolders", 0);
}
}
return result;
}
...but that doesn't fire when an item goes bold. Reading msdn, it seems I need TVM_SETITEM, and then look for a state change with TVIS_BOLD, but I can't find an example on how to use it. Can anyone help

detecting treeview item state change
Viswanand
-mark
Program Manager
Microsoft
This post is provided "as-is"