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 a solid color swatch with optional border in a SFT_PICTURE as a SFT_PICTURE_COLOR_SAMPLE slot.
C
void Sft_SetPictureColorSample(LPSFT_PICTURE lpPicture,
int w, int h,
COLORREF sampleColor,
COLORREF frameColor);lpPicture
Pointer to a SFT_PICTURE. Must not be NULL.
w, h
Width and height of the color swatch in pixels. h must be greater than zero - calling with h <= 0 clears the slot but does not assign a swatch.
sampleColor
The fill color of the swatch.
frameColor
Border color drawn around the swatch. Set to -1 (or SFT_NOCOLOR) to draw no border.
Sft_SetPictureColorSample calls Sft_ClearPicture internally before assigning the new swatch.
Color samples are useful for color-picker controls, legend entries, and anywhere a small filled rectangle is more meaningful than a bitmap.
See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_COLOR_SAMPLE | Sft_IsPictureColorSample | SFT_NOCOLOR
