MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / DirList_GetDispInfo

Function DirList_GetDispInfo

src/Dlapi.c:524–545  ·  view source on GitHub ↗

============================================================================= DirList_GetDispInfo() Must be called in response to a WM_NOTIFY/LVN_GETDISPINFO message from the listview control

Source from the content-addressed store, hash-verified

522// the listview control
523//
524BOOL 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//=============================================================================

Callers 2

OpenWithDlgProcFunction · 0.85
FavoritesDlgProcFunction · 0.85

Calls 1

IL_GetDisplayNameFunction · 0.85

Tested by

no test coverage detected