델파이/델파이관련

RichEdit Message Interface

지병철 2011. 9. 28. 11:23

RichEdit Message Interface

There are many RichEdit messages.  In addition to the system edit control messages defined in winuser.h, there are many new messages defined in richedit.h. All edit messages handled by RichEdit (specifically by ITextServices::TxSendMessage()) are listed below.  System edit and RichEdit 1.0 messages are defined in the system SDK.  RichEdit 2.0 and 3.0 messages aren’t documented in my copy of the SDK, but should be documented on http://richedit sometime soon, and in the SDK sometime later.  Note that a number of RichEdit 1.0 messages have been generalized in later versions.  E.g., EM_STREAMIN/OUT take an optional codepage value (which can be 1200, i.e., Unicode, or CP_UTF8, i.e., UTF-8).  RichEdit only understands enough about IME messages to know to invoke the IME input module (see Input Module). Hence not all IME messages are listed below.

 

System edit control messages not handled by RichEdit

EM_GETHANDLE EM_SETHANDLE

EM_FMTLINES     EM_SETTABSTOPS

WM_GETFONT

 

System edit control messages handled by RichEdit

EM_GETFIRSTVISIBLELINE    EM_GETLINE

EM_GETLINECOUNT               EM_GETMODIFY

EM_GETSEL        EM_GETTHUMB

EM_GETWORDBREAKPROC  EM_LIMITTEXT

EM_LINEFROMCHAR               EM_LINEINDEX

EM_LINELENGTH                     EM_LINESCROLL

EM_REPLACESEL                    EM_SCROLL

EM_SETMODIFY  EM_SETSEL

EM_SETTARGETDEVICE         EM_SETWORDBREAKPROC

EM_UNDO

 

WM_CHAR           WM_CLEAR

WM_CONTEXTMENU               WM_COPY

WM_CUT              WM_DESTROYCLIPBOARD

WM_DROPFILES WM_ERASEBKGND

WM_GETTEXT     WM_GETTEXTLENGTH

WM_HSCROLL     WM_IME_CHAR

WM_INPUTLANGCHANGE       WM_INPUTLANGCHANGEREQUEST

WM_KEYDOWN   WM_KEYUP

WM_KILLFOCUS  WM_LBUTTONDBLCLK

WM_LBUTTONDOWN              WM_LBUTTONUP

WM_MBUTTONDBLCLK           WM_MBUTTONDOWN

WM_MBUTTONUP                    WM_MOUSEACTIVATE

WM_MOUSEMOVE                   WM_MOUSEWHEEL

WM_NCMBUTTONDOWN        WM_PASTE

WM_RBUTTONDBLCLK           WM_RBUTTONDOWN

WM_RBUTTONUP                    WM_RENDERALLFORMATS

WM_RENDERFORMAT            WM_SETFOCUS

WM_SETFONT     WM_SETTEXT

WM_SETTINGCHANGE            WM_SIZE

WM_SYSCHAR    WM_SYSCOLORCHANGE

WM_SYSKEYDOWN                 WM_TIMER

WM_UNDO           WM_VSCROLL

 

RichEdit 1.0 messages

EM_CANPASTE   EM_CHARFROMPOS                             

EM_DISPLAYBAND                  EM_EXGETSEL                                          

EM_EXLIMITTEXT                    EM_EXLINEFROMCHAR               

EM_EXSETSEL    EM_FINDTEXT                                        

EM_FINDTEXTEX                     EM_FINDWORDBREAK                 

EM_FORMATRANGE                EM_GETEVENTMASK

EM_GETCHARFORMAT           EM_GETLIMITTEXT                                   

EM_GETOLEINTERFACE         EM_GETOPTIONS                         

EM_GETPARAFORMAT           EM_GETSELTEXT                         

EM_GETTEXTRANGE              EM_GETWORDBREAKPROCEX  

EM_HIDESELECTION               EM_PASTESPECIAL                                  

EM_POSFROMCHAR               EM_REQUESTRESIZE                  

EM_SCROLLCARET                 EM_SELECTIONTYPE                   

EM_SETBKGNDCOLOR           EM_SETCHARFORMAT                

EM_SETEVENTMASK              EM_SETOLECALLBACK                

EM_SETOPTIONS                    EM_SETPARAFORMAT                 

EM_SETTARGETDEVICE         EM_SETWORDBREAKPROCEX   

EM_STREAMIN    EM_STREAMOUT                                   

 

RichEdit 2.0 messages

EM_SETUNDOLIMIT                 EM_REDO                                                  

EM_CANREDO     EM_GETUNDONAME                             

EM_GETREDONAME               EM_STOPGROUPTYPING            

EM_SETTEXTMODE                 EM_GETTEXTMODE                                 

EM_AUTOURLDETECT            EM_GETAUTOURLDETECT                      

EM_SETPALETTE                     EM_GETTEXTEX                           

EM_GETTEXTLENGTHEX        EM_SHOWSCROLLBAR                

EM_FINDTEXTW  EM_FINDTEXTEXW                                

 

Far East specific messages (some are RE 1.0)

EM_GETPUNCTUATION          EM_SETPUNCTUATION    

EM_GETWORDWRAPMODE   EM_SETWORDWRAPMODE                     

EM_GETIMECOLOR                 EM_SETIMECOLOR                                  

EM_GETIMEOPTIONS              EM_SETIMEOPTIONS                   

EM_GETLANGOPTIONS          EM_SETLANGOPTIONS                

EM_CONVPOSITION                EM_GETIMECOMPMODE             

 

RichEdit 3.0 messages

FE messages

EM_GETIMEMODEBIAS           EM_SETIMEMODEBIAS                

EM_RECONVERSION                                  

 

BiDi specific messages

EM_GETBIDIOPTIONS             EM_SETBIDIOPTIONS                  

 

Extended edit style specific messages

 EM_GETEDITSTYLE                EM_SETEDITSTYLE                                  

 

Outline view message

EM_OUTLINE

 

Message for getting and restoring scroll pos

EM_GETSCROLLPOS              EM_SETSCROLLPOS

 

Zoom and increment/decrement fontsize

EM_GETZOOM    EM_SETZOOM

EM_SETFONTSIZE

 

LineServices messages

EM_GETTYPOGRAPHYOPTIONS    EM_SETTYPOGRAPHYOPTIONS