TE Edit Control Win32 / Win64 Help
Product page

TerSetPflags

Set additional paragraph flags

BOOL TerSetPflags(hWnd, flags, OnOff, repaint)
HWND hWnd;Handle of the window to be accessed
WORD flags:

Select paragraph flags:

PFLAG_NO_WRAP: Disable word wrapping

PFLAG_WIDOW: Set Widow/Orphan control

To specify more than one styles, use the 'logical OR' (|) operator.

BOOL OnOff;TRUE to set the flags, FALSE to reset the selected flags.
BOOL repaint;TRUE to refresh the window after this operation

Return Value: This function returns TRUE if successful.