The EM_SETPARAFORMAT message sets the paragraph formatting for the current selection in a rich edit control.
EM_SETPARAFORMAT wParam = 0; // not used; must be zero lParam = (LPARAM) (PARAFORMAT FAR *) lpFmt;
Returns a nonzero value if successful, or zero otherwise.