Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Fri Feb 06, 2009 10:54 am Post subject: HOWTO: Prevent files from being shown in FileView |
|
|
To prevent files from being shown in FileView, use the following code in the OnAfterItemAdd event:
[C#]
Code: | void CFilViewVCDlg::OnOnAfterItemAddFileviewctrl1(LPDISPATCH Item)
{
CListItem item;
item.AttachDispatch(Item,FALSE);
if (!item.IsFolder())
{
item.Delete();
}
}
|
[VB6]
Code: | Private Sub fileVw_OnAfterItemAdd(ByVal Item As FileViewControl.IListItem)
If (Item.IsFolder = False) Then
Item.Delete
End If
End Sub |
|
|