TerInsertControl
Insert another control inside the TER control.
int TerInsertControl(hWnd, class, style, width, height, align, id, insert)
HWND hWnd; | The handle of the window to be accessed |
LPBYTE class; | control class name |
DWORD style; | control style bits. The control must be of WS_CHILD style. It must not have the caption and menu. |
int width; | width (twips) of the control. |
int height; | height (twips) of the control. |
int align; | control alignment relative to the baseline of the text: ALIGN_BOT (default), ALIGN_TOP, ALIGN_MIDDLE. |
int id; | control id. Specify a unique id with a value above 2000. |
BOOL insert; | TRUE to insert the control into text. FALSE to simply return the object id without inserting the control into text. |
Description: This function inserts a control of the specified window class into the current text position. The control notification messages are conveyed to your window (the parent of the TER window) via the WM_COMMAND message.
When the 'insert' argument is TRUE, the object is inserted at the current cursor location.
Return Value: This function returns a non-zero object id, if successful. Otherwise it returns zero.