1#include <config.h>
2#include "lst.h"
3
4HLSTITEM _lstPrevValidItem( HLST hLst, HLSTITEM hItem )
5{
6
7 if ( !hLst )
8 return NULL;
9
10 if ( !hItem )
11 return NULL;
12
13 hItem = hItem->pPrev;
14 while ( hItem )
15 {
16 if ( _lstVisible( hItem ) )
17 return hItem;
18
19 hItem = hItem->pPrev;
20 }
21
22
23 return NULL;
24}
25
26
27
28