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
Defines the image object using an icon handle.
Get
VB.NET | hIcon = object.IconHandle As Integer |
VB | hIcon = object.IconHandle As OLE_HANDLE |
C#.NET | int hIcon = object.IconHandle; |
VC++ | OLE_HANDLE hIcon = object->IconHandle; OLE_HANDLE hIcon = object->GetIconHandle(); |
C | HRESULT object->get_IconHandle(OLE_HANDLE* hIcon); |
Put
VB.NET | object.IconHandle = hIcon As Integer |
VB | object.IconHandle = hIcon As OLE_HANDLE |
C#.NET | int object.IconHandle = hIcon; |
VC++ | OLE_HANDLE object->IconHandle = hIcon; void object->PutIconHandle(OLE_HANDLE hIcon); |
C | HRESULT object->put_IconHandle(OLE_HANDLE hIcon); |
object
A SftPictureObject object.
hIcon
Defines the image object using an icon handle. The icon handle can be NULL, in which case the SftPictureObject object is cleared.
The IconHandle property defines the image object using an icon handle.
The SftPictureObject.Type property is set to sftTypeIcon. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the icon size.
C->Image->raw_LoadImageFromResource((long) AfxGetApp()->m_hInstance, L"PNG", (LPWSTR)MAKEINTRESOURCE(resourceID)); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateIcon(long ItemIndex, HICON hIcon, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0]; C->Image->PutIconHandle((OLE_HANDLE)hIcon); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateImageList(long ItemIndex, HIMAGELIST hImgList, short iImage, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0];
See Also SftPictureObject Object | Object Hierarchy