TE Edit Control Win32 / Win64 Help
Product page

TerInsertCheckBoxField

Insert a checkbox field at the cursor position.

int TerInsertCheckBoxField(hWnd, name, twipsize, checked, repaint)
HWND hWnd;The handle of the window to be accessed
LPBYTE name;field name
int twipsize;The width of the checkbox specified in Twips unit.
BOOL checked;Set to TRUE to create the checkbox initially checked.
BOOL Insert;Set to TRUE to insert the checkbox. Set to FALSE to create a check-box object, but do not insert it in the text.
BOOL repaint;Repaint the window after this operation

Description: This function inserts a checkbox.

Return Value: This function returns the picture id of the field. It returns 0 to indicate an error condition.