case WM_NOTIFY :
{
if (wParam == GetDlgCtrlID(subHWnd[1]))
{
LPNMHDR phdr = (LPNMHDR)lParam;
if (phdr->code == NM_CLICK )
{
hItem = TreeView_GetSelection(subHWnd[1]);
LPTVITEM pitem;
pitem = (LPTVITEM)malloc(sizeof(TVITEM)) ;
pitem->hItem = hItem;
pitem->mask = TVIF_TEXT;
len = 128;
pitem->pszText = new TCHAR[len];
pitem->cchTextMax = len;
pitem->lParam = 0 ;
if(TreeView_GetItem(subHWnd[1], pitem))
{
if(pitem->lParam)
{
menuDataIndex_LV1 = getMemuTreePlane(menuDataMenuIndex_All[pitem->lParam], &len) ;
if(len)
{
InsertListViewItems(subHWnd[3], len) ;
// MessageBox(NULL, menuDataMenuIndex_All[pitem->lParam]->fileInfor->name, L"测试", MB_OK) ;
}
}
}
}
}
}
return ListViewNotify(hWnd, lParam, LV_FILE_ID);