HeaderPane
Main

SftPicture2 Documentation

Share Link
Print

Sft_SetPictureSizeOnly

Store a layout placeholder of fixed dimensions in a SFT_PICTURE as a SFT_PICTURE_SIZEONLY slot. The slot reserves space but draws nothing.

C

void Sft_SetPictureSizeOnly(LPSFT_PICTURE lpPicture, int w, int h);

Parameters

lpPicture

Pointer to a SFT_PICTURE. Must not be NULL.

w, h

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

Comments

Sft_SetPictureSizeOnly calls Sft_ClearPicture internally before assigning the new placeholder.

Useful when an image is going to be supplied later (e.g. loaded asynchronously) and the layout needs to reserve the space, or when the slot must match a sibling control's size for visual alignment.

See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_SIZEONLY | Sft_IsPictureDimension


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