TerDeleteStyle
Delete a stylesheet item.
BOOL TerDeleteStyle(hWnd, StyleId, name)
BOOL TerDeleteStyleU(hWnd, StyleId, name)
HWND hWnd; | The handle of the window to be accessed |
int StyleId; | Style id to delete. Please note that the default style ids 0 and 1 can not be deleted. Set this parameter to -1 to specify the name of the style item to delete. |
LPBYTE name; | Name of style item to delete. This parameter is ignored when StyleId is non-zero. Any paragraph or font id referring the style id being deleted are modified to refer to the default style ids instead. The TerDeleteStyleU method uses a unicode style item name string. |
Return Value: This function returns TRUE if successful.