This hook allows an application to control where the WinDrawText function breaks a character string that is too long for the drawing rectangle.
#define INCL_WINHOOKS /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>
USHORT usCodepage; /* Codepage to use. */
PSZ pszText; /* Text to break. */
ULONG cb; /* Maximum text size. */
ULONG ich; /* Break near here. */
PULONG pichStart; /* Where break began. */
PULONG pichEnd; /* Where break ended. */
PULONG pichNext; /* Where next word begins. */
BOOL rc; /* Success indicator. */
rc = FindWordHook(usCodepage, pszText, cb,
ich, pichStart, pichEnd, pichNext);