============================================================================= DirList_GetDispInfo() Must be called in response to a WM_NOTIFY/LVN_GETDISPINFO message from the listview control
| 522 | // the listview control |
| 523 | // |
| 524 | BOOL DirList_GetDispInfo(HWND hwnd,LPARAM lParam,BOOL bNoFadeHidden) |
| 525 | { |
| 526 | |
| 527 | LV_DISPINFO *lpdi = (LPVOID)lParam; |
| 528 | |
| 529 | LPLV_ITEMDATA lplvid = (LPLV_ITEMDATA)lpdi->item.lParam; |
| 530 | |
| 531 | // SubItem 0 is handled only |
| 532 | if (lpdi->item.iSubItem != 0) |
| 533 | return FALSE; |
| 534 | |
| 535 | // Text |
| 536 | if (lpdi->item.mask & LVIF_TEXT) |
| 537 | IL_GetDisplayName(lplvid->lpsf,lplvid->pidl,SHGDN_INFOLDER, |
| 538 | lpdi->item.pszText,lpdi->item.cchTextMax); |
| 539 | |
| 540 | // Set values |
| 541 | lpdi->item.mask |= LVIF_DI_SETITEM; |
| 542 | |
| 543 | return TRUE; |
| 544 | |
| 545 | } |
| 546 | |
| 547 | |
| 548 | //============================================================================= |
no test coverage detected