Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Tue Jul 14, 2009 11:21 am Post subject: HOWTO: Open files/browse folders with a single click. |
|
|
By default, FileView browses folders or opens files when they are double-clicked. To do this with a single-click, set the HotTracking property to True and call the CListItem.Open method in the OnItemClick event as follows:
[C++]
Code: | void CFilViewVCDlg::OnOnItemClickFileviewctrl1(LPDISPATCH Item, long x, long y)
{
CListItem item;
item.AttachDispatch(Item,FALSE);
item.Open();
} |
[VB6]
Code: | Private Sub fileVw_OnItemClick(ByVal Item As FileViewControl.IListItem, ByVal X As Long, ByVal Y As Long)
Item.Open
End Sub |
|
|