>
   MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

CHARRANGE Structure


The CHARRANGE structure specifies a range of characters in a rich edit control. This structure is used with the EM_EXGETSEL and EM_EXSETSEL messages.

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
Character position index immediately preceding the first character in the range.
cpMax
Character position immediately following the last character in the range.

Structure Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95, Windows NT 4.0

See Also

Rich Edit Controls, EM_EXGETSEL, EM_EXSETSEL
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter   |  Legal
 © 2003 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility