TerPictureFromFile
Paste a picture from a disk bitmap file.
BOOL TerPictureFromFile(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 bitmap from the specified disk file. 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.