Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   case WM_NOTIFY  'handling notifications (i.e. for the listview)
  2.    
  3.     dim as NMLVDISPINFO ptr pdi = cptr(NMLVDISPINFO ptr, lParam )
  4.     dim as LVITEM ptr pi = @pdi->item
  5.     select case pdi->hdr.code
  6.     case LVN_GETDISPINFO 'want info about an item
  7.      
  8.       static as zstring*64 zTemp
  9.      
  10.       if pi->iSubItem = 1 then 'column 1
  11.         sprintf( zTemp , "[%i]Filename%i.ext" , pi->iSubItem , pi->iItem )
  12.       else                     'column 0
  13.         sprintf( zTemp , "[%i]%i" , pi->iSubItem , pi->iItem )
  14.       end if
  15.      
  16.       pi->mask = LVIF_TEXT
  17.       pi->pszText = @zTemp
  18.      
  19.     end select
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement