TE Edit Control Win32 / Win64 Help
Product page

TerSetPictFrame2

Set a floating frame for a picture.

BOOL TerSetPictFrame2(hWnd, pict, type, x, y, repaint)
HWND hWnd;The handle of the window to be accessed
int pict;Id of the picture. Must be a valid number between 0 and TotalFonts - 1.
int type;

Picture frame type:

PFRAME_FLOAT: Free floating picture frame

PFRAME_LEFT: Left aligned picture frame

PFRAME_RIGHT: Right aligned picture frame

PFRAME_NONE: No picture frame

int x;The x location of the frame relative to the left edge of the page. This value is used only when frame type is set to PFRAME_FLOAT.
int y;The y location of the frame relative to the top edge of the page. This value is used only when frame type is set to PFRAME_FLOAT.
BOOL repaint;Repaint the screen after this operation.

Description: This function enclosed the give picture in a frame. The document text wraps around the frame.

Return Value: This function returns the frame id of the picture frame when successful. It returns a value of -1 to indicate an error condition.