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
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
SftTree/NET 2.0 - Tree Control
Store an IPictureDisp pointer in a SFT_PICTURE as a SFT_PICTURE_IDISPATCH slot. Used for OLE picture objects exposed through the IDispatch / IPictureDisp interface (the form returned by COM properties of type OLE_PICTURE).
C
void Sft_SetPictureIDispatch(LPSFT_PICTURE lpPicture, IPictureDisp* IPicDisp);lpPicture
Pointer to a SFT_PICTURE. Must not be NULL.
IPicDisp
IPictureDisp pointer. NULL leaves the slot empty.
Sft_SetPictureIDispatch calls Sft_ClearPicture internally before assigning the new IPictureDisp pointer.
Reference counting: the SFT_PICTURE stores the raw pointer without calling AddRef. The application is responsible for ensuring the picture object outlives the SFT_PICTURE - typically by keeping its own reference and calling Release after the host control no longer needs the picture.
IPictureDisp wraps the same underlying picture types as Sft_SetPictureIPicture (bitmaps, icons, metafiles); use whichever interface the picture-bearing COM source exposes.
See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_IDISPATCH | Sft_SetPictureIPicture | Sft_IsPictureIDispatch
