HeaderPane
Main

SftPicture2 Documentation

Share Link
Print

Sft_SetPictureUpDown

Store an up / down arrow glyph (SFT_PICTURE_UPDOWN) or a sort-direction indicator (SFT_PICTURE_UPDOWNSORT) in a SFT_PICTURE.

C

void Sft_SetPictureUpDown    (LPSFT_PICTURE lpPicture, BOOL fUp, int w, int h, BOOL fEnabled);
void Sft_SetPictureUpDownSort(LPSFT_PICTURE lpPicture, BOOL fUp, int w, int h, BOOL fEnabled);

Parameters

lpPicture

Pointer to a SFT_PICTURE. Must not be NULL.

fUp

TRUE for up arrow / ascending, FALSE for down arrow / descending.

w, h

Width and height of the glyph in pixels. h must be greater than zero - calling with h <= 0 clears the slot but does not assign a glyph.

fEnabled

TRUE for enabled appearance, FALSE for disabled (grayed) appearance. Sft_SetPictureUpDownSort accepts the parameter for signature parity with the other glyph setters but ignores it visually - sort indicators do not have a disabled state.

Comments

Both setters call Sft_ClearPicture internally before assigning the new glyph.

Sft_SetPictureUpDown produces a generic up / down arrow useful for spinner controls and similar adjustable values. Sft_SetPictureUpDownSort produces a sort-direction triangle (typically thicker / smaller) used in column headers to indicate the active sort column and direction.

See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_UPDOWN | SFT_PICTURE_UPDOWNSORT | Sft_IsPictureUpDown


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.