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 a bitmap handle.
Get
VB.NET | hBitmap = object.BitmapHandle As Integer |
VB | hBitmap = object.BitmapHandle As OLE_HANDLE |
C#.NET | int hBitmap = object.BitmapHandle; |
VC++ | OLE_HANDLE hBitmap = object->BitmapHandle; OLE_HANDLE hBitmap = object->GetBitmapHandle(); |
C | HRESULT object->get_BitmapHandle(OLE_HANDLE* hBitmap); |
Put
VB.NET | object.BitmapHandle = hBitmap As Integer |
VB | object.BitmapHandle = hBitmap As OLE_HANDLE |
C#.NET | int object.BitmapHandle = hBitmap; |
VC++ | OLE_HANDLE object->BitmapHandle = hBitmap; void object->PutBitmapHandle(OLE_HANDLE hBitmap); |
C | HRESULT object->put_BitmapHandle(OLE_HANDLE hBitmap); |
object
A SftPictureObject object.
hBitmap
Defines the image object using a bitmap handle. The bitmap handle can be NULL, in which case the SftPictureObject object is cleared.
The BitmapHandle property defines the image object using a bitmap handle.
Typically, .NET applications use the NETImageObject property to define an image, C and C++ applications use BitmapHandle or Image, VB6 and other COM applications use the Picture property.
The SftPictureObject.Type property is set to sftTypeBitmap. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.
m_vTree->Item[ItemIndex]->LabelImage = Img; m_vTree->Item[ItemIndex]->RowHeader->Image = Img; } } void CPicturesDlg::UpdateBitmap(long ItemIndex, const CBitmap& bmp, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0]; C->Image->PutBitmapHandle((OLE_HANDLE)(HBITMAP) bmp); C->ImageHAlign = Align; PropagateImage(ItemIndex, C->Image); } void CPicturesDlg::UpdateImage(long ItemIndex, int resourceID, SftTreeHAlignConstants Align) { ISftTreeCellPtr C = m_vTree->Cell[ItemIndex][0];
See Also SftPictureObject Object | Object Hierarchy