TE Edit Control Win32 / Win64 Help
Product page

TerGetStyleId

Translate a stylesheet style name to style id.

int TerGetStyleId(hWnd, name)
int TerGetStyleIdU(hWnd, name)
HWND hWnd;The handle of the window to be accessed
LPBYTE name;

Style name.

The TerGetStyleIdU method uses a Unicode style item name string.

Return Value: The function returns the style id for the given style name when successful. Otherwise it returns -1.