TE Edit Control Win32 / Win64 Help
Product page

TerSetBkPictId

Set the background picture.

BOOL TerSetBkPictId(hWnd, PictId, PictFlag, repaint)
HWND hWnd;The handle of the window to be accessed.
int PictId;Picture id
UINT PictFlag;This can be set to one of these values:
BKPICT_STRETCH:Stretch the picture to occupy the text area
BKPICT_TILE:Tile the picture to occupy the text area

Or you can set this argument to 0 to draw the picture in its original size without tiling.

BOOL repaint:Repaint the screen after this operation

Description: The picture can be an ID returned by any of these functions: TerPastePicture, TerInsertPictureFile, TerPictureFromFile, TerPictureFromWmf. The 'insert' argument for these function calls must be set to FALSE. To remove an existing picture background, call this function with the PictId set to 0. Call this function with the PictId set to -1 to show a dialog box to the user. This dialog box allows the user to select a bitmap or a metafile file name.

Return Value: This function returns TRUE when successful.