Help Center

CRichEdit.GetWordBreakProcmethod

Retrieves the address of the current Wordwrap function.

Windowsmethoddocumented

Syntax

FUNCTION GetWordBreakProc (BYVAL hRichEdit AS HWND) AS LONG_PTR

Parameters

NameDescription
hRichEditThe handle of the rich edit control.

Return value

The return value specifies the address of the application-defined Wordwrap function. The return value is NULL if no Wordwrap function exists.

Description

Retrieves the address of the current Wordwrap function.

Remarks

A Wordwrap function scans a text buffer that contains text to be sent to the display, looking for the first word that does not fit on the current display line. The wordwrap function places this word at the beginning of the next line on the display. A Wordwrap function defines the point at which the system should break a line of text for multiline edit controls, usually at a space character that separates two words.

Reference

  • Defined in AfxNova/CRichEdit.inc:758
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class