Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Tue Aug 26, 2008 10:19 am Post subject: HOWTO: Disable display of overlay icons |
|
|
Some items such as shortcuts and network shares display a small overlay icon on top of the normal icon. To disable display of these overlay icons, use the OverlayIconIndex property in the AfterItemAdd event as follows :
[C++]
void CFileViewVCDlg::OnOnAfterItemAddFileviewctrl1(LPDISPATCH Item)
{
CListItem item;
item.AttachDispatch(Node,FALSE);
item.SetOverlayIconIndex(0);// FOVOverlayIconNone = 0 ;
}
[VB6]
Private Sub fileView_OnAfterItemAdd(ByVal Item As FileViewControl.IListItem)
Item.OverlayIconIndex = FIVOverlayIconNone
End Sub
Note:
You can also display a different (non-default) overlay icon using the OverlayIconIndex property. |
|