TE Edit Control Win32 / Win64 Help
Product page

TerPictureFromWmf

Paste a picture from a Windows metafile file.

BOOL TerPictureFromWmf(hWnd, FileName, align, insert)
HWND hWnd;Handle of the window to be accessed
LPBYTE FileName;Name of the disk image file.
int align;picture alignment relative to the baseline of the text: ALIGN_BOT (default), ALIGN_TOP, ALIGN_MIDDLE.
BOOL insert;TRUE to insert the picture into text. FALSE to simply return the picture id without inserting the picture into text.

Description: This function pastes a picture from the specified disk file. The file must be in the Windows placeable metafile format. A file selection dialog box is displayed if the FileName argument is set to NULL.

Return Value: This function returns a non-zero picture id, if successful. Otherwise it returns zero.