CHARRANGE structure

Specifies a range of characters in a rich edit control.

If the cpMin and cpMax members are equal, the range is empty. The range includes everything if cpMin is 0 and cpMax is –1.

Syntax

typedef struct _charrange {
  LONG cpMin;
  LONG cpMax;
} CHARRANGE;

Members

cpMin

Type: LONG

Character position index immediately preceding the first character in the range.

cpMax

Type: LONG

Character position immediately following the last character in the range.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header richedit.h

See Also

EM_EXGETSEL

EM_EXSETSEL

Reference