SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
A file is being opened.
| VB.NET | Private Sub object_Opening(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.Opening |
| VB | Private Sub object_Opening(Folder As SftDirectoryFolder, Allow As Boolean) |
| C#.NET | void object_Opening(object sender, EventArgumentType e); |
| VC++ | void OnOpeningobject(ISftDirectoryFolder** Folder, VARIANT_BOOL* Allow); |
| C | HRESULT OnOpeningobject(ISftDirectoryFolder** Folder, VARIANT_BOOL* Allow); |
object
Folder
Describes the folder being opened.
Allow
On return, determines the action to be taken.
| Allow | Description |
|---|---|
| True | The file is opened. |
| False | The file is not opened. |
The Opening event occurs when a file is being opened.
AxSftDirectoryRight.Refresh()
If Not AxSftDirectoryLeft.CurrentFolder Is Nothing Then
AxSftDirectoryRight.TopMostFolderIDL = AxSftDirectoryLeft.CurrentFolder.ItemIDList
Else
AxSftDirectoryRight.TopMostFolderSpecial = SftDirectorySpecialFolderConstants.specialSftDirectoryEmpty
End If
End Sub
Private Sub AxSftDirectoryRight_Opening(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_OpeningEvent) Handles AxSftDirectoryRight.Opening
Dim F As SftDirectoryFolder
Dim IDL As String
' we're about to open a file/folder. If we can add the folder on the
' left side, that means we don't need to open it in a separate window
IDL = e.folder.ItemIDList ' the folder we are looking for
' this will add the complete hierarchy down to the folder in
SftDirectoryRight.Refresh
If Not SftDirectoryLeft.CurrentFolder Is Nothing Then
SftDirectoryRight.TopMostFolderIDL = SftDirectoryLeft.CurrentFolder.ItemIDList
Else
SftDirectoryRight.TopMostFolderSpecial = specialSftDirectoryEmpty
End If
End Sub
Private Sub SftDirectoryRight_Opening(Folder As SftDirectoryLib30.ISftDirectoryFolder, Allow As Boolean)
Dim F As SftDirectoryFolder
Dim IDL As String
' we're about to open a file/folder. If we can add the folder on the
' left side, that means we don't need to open it in a separate window
IDL = Folder.ItemIDList ' the folder we are looking for
' this will add the complete hierarchy down to the folder in
axSftDirectoryRight.CancelMode();
axSftDirectoryRight.Refresh();
if (axSftDirectoryLeft.CurrentFolder != null)
axSftDirectoryRight.TopMostFolderIDL = axSftDirectoryLeft.CurrentFolder.ItemIDList;
else
axSftDirectoryRight.TopMostFolderSpecial = SftDirectorySpecialFolderConstants.specialSftDirectoryEmpty;
}
private void axSftDirectoryRight_Opening(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_OpeningEvent e) {
SftDirectoryFolder f;
String IDL;
// we're about to open a file/folder. If we can add the folder on the
// left side, that means we don't need to open it in a separate window
IDL = e.folder.ItemIDList; // the folder we are looking for
// this will add the complete hierarchy down to the folder in
vDirRight->CancelMode();
vDirRight->Refresh();
if (vDirLeft->CurrentFolder != NULL)
vDirRight->TopMostFolderIDL = vDirLeft->CurrentFolder->ItemIDList;
else
vDirRight->TopMostFolderSpecial = specialSftDirectoryEmpty;
}
void CSimpleExplorerDlg::OnOpening_SftDirectoryRight(LPDISPATCH FAR* Folder, BOOL FAR* Allow)
{
ISftDirectoryFolderPtr f = *Folder;
_bstr_t bstrIDL;
ISftDirectoryPtr vDirLeft = m_DirLeft.GetControlUnknown();
// we're about to open a file/folder. If we can add the folder on the
// left side, that means we don't need to open it in a separate windowSee Also SftDirectory Object | Object Hierarchy
