TE Edit Control Win32 / Win64 Help
Product page

TerCreateTabId

Create a tab id.

int TerCreateTabid(hWnd, pTabInfo)
HWND hWnd;The handle of the window to be accessed
struct StrTab far *pTabInfo;This structure is used to pass the tab stop information for the new tab id. struct StrTab {
int count;number of tab stop (max 20)
int pos[20];tab position for each tab stop in twips. The tab positions must be specified in the ascending order
int type[20];The tab type for each tab stop:
TAB_LEFT:Left tab
TAB_RIGHT:Right tab
TAB_CENTER:Center tab
TAB_DECIMAL:Decimal tab
BYTE flags[20];The tab flags for each tab stop:
TAB_NONE
Tab with no leaders (default)
TAB_DOT:Tab with dot leaders
TAB_HYPH:Tab with hyphen leaders
TAB_ULINE:Tab with underline leader

Description: The tab id created by this function can be used in the TerCreateParaId function.

Return Value: This function returns a non-zero tab id if successful, otherwise it returns -1.

Comments: This function is not available as an ActiveX control method. It must be used as a DLL function.