.Usage Summary - RichEdit Control

Category: Controls - RichEdit

Date: 02-16-2022

Return to Index


 
EM_EXGETSEL           'sets upper limit text user can type in/paste            n/u  0                   ptr to CHARRANGE     ??
EM_EXLINEFROMCHAR     'get line# containing specified character position       n/u                      char#                line#
EM_EXSETSEL           'selects range of characters                             n/u                      ptr to CHARRANGE     ??
EM_GETLINE            'get a line of text                                      line#                    ptr to buffer        number of char's returned
EM_GETSELTEXT         'gets currently selected text                            n/u  0                   ptr to buffer        # of characters returned
EM_GETTEXTEX          'get all text in any code base                           ptr to GETTEXTEX         ptr to buffer        ??      Notes:  works faster when both lpDefaultChar/lpUsedDefChar are NULL
EM_GETTEXTLENGTHEX    'get length of all text (various calculations)           ptr to GETTEXTLENGTHEX   n/u  0               # of characters in edit control
EM_GETTEXTRANGE       'get characters from a specified range                   n/u  0                   ptr to TEXTRANGE     # of characters copied
EM_LINEINDEX          'get char# of 1st char in specified line                 line#                    n/u                  char# of 1st char in the specified line   Note: w=-1 is current line
EM_LINELENGTH         'get # of characters in a specified line                 char# in line            n/u                  #characters in line  Note:
EM_REPLACESEL         'replaces selected text                                  T/F if can undo          ptr to buffer        ??      Note: if no selection, placed at caret
EM_SETTEXTEX          'WM_SETTEXT and EM_REPLACESEL                            ptr to SETTEXTEX         ptr to buffer        ??
 
'Special Arguments:
EM_EXLineFromChar      ' 0,-1               current line
EM_GetLine             ' 0, p-Buff          top-most line
EM_SetSel              ' 0, -1              all selected
EM_SetSel              '-1, 0               none selected
EM_EXSetSel            ' 0, p-CHARRANGE     cpMin=cpMax then no selection  0,-1 then all text selected
 
'gbs_00219
'Date: 03-10-2012


created by gbSnippets
http://www.garybeene.com/sw/gbsnippets.htm