Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Declare Function SendMessageStr Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Public Declare Function SendMessageRef Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, wParam As Any, lParam As Any) As Long
Public Const WM_USER = &H400
' /* New masks and effects -- a parenthesized asterisk indicates that
' the data is stored by RichEdit2.0, but not displayed */
Public Const CFM_SMALLCAPS = &H40& ' /* (*) */
Public Const CFM_ALLCAPS = &H80& ' /* (*) */
Public Const CFM_HIDDEN = &H100& ' /* (*) */
Public Const CFM_OUTLINE = &H200& ' /* (*) */
Public Const CFM_SHADOW = &H400& ' /* (*) */
Public Const CFM_EMBOSS = &H800& ' /* (*) */
Public Const CFM_IMPRINT = &H1000& ' /* (*) */
Public Const CFM_DISABLED = &H2000&
Public Const CFM_REVISED = &H4000&
Public Const CFM_BACKCOLOR = &H4000000
Public Const CFM_LCID = &H2000000
Public Const CFM_UNDERLINETYPE = &H800000 ' /* (*) */
Public Const CFM_WEIGHT = &H400000
Public Const CFM_SPACING = &H200000 ' /* (*) */
Public Const CFM_KERNING = &H100000 ' /* (*) */
Public Const CFM_STYLE = &H80000 ' /* (*) */
Public Const CFM_ANIMATION = &H40000 ' /* (*) */
Public Const CFM_REVAUTHOR = &H8000&
Public Const CFE_SUBSCRIPT = &H10000 ' /* Superscript and subscript are */
Public Const CFE_SUPERSCRIPT = &H20000 ' /* mutually exclusive */
Public Const CFM_SUBSCRIPT = CFE_SUBSCRIPT Or CFE_SUPERSCRIPT
Public Const CFM_SUPERSCRIPT = CFM_SUBSCRIPT
'Public Const CFM_EFFECTS2 = (CFM_EFFECTS Or CFM_DISABLED Or CFM_SMALLCAPS Or CFM_ALLCAPS _
' Or CFM_HIDDEN Or CFM_OUTLINE Or CFM_SHADOW Or CFM_EMBOSS _
' Or CFM_IMPRINT Or CFM_DISABLED Or CFM_REVISED _
' Or CFM_SUBSCRIPT Or CFM_SUPERSCRIPT Or CFM_BACKCOLOR)
'Public Const CFM_ALL2 = (CFM_ALL Or CFM_EFFECTS2 Or CFM_BACKCOLOR Or CFM_LCID _
' Or CFM_UNDERLINETYPE Or CFM_WEIGHT Or CFM_REVAUTHOR _
' Or CFM_SPACING Or CFM_KERNING Or CFM_STYLE Or CFM_ANIMATION)
Public Const CFE_SMALLCAPS = CFM_SMALLCAPS
Public Const CFE_ALLCAPS = CFM_ALLCAPS
Public Const CFE_HIDDEN = CFM_HIDDEN
Public Const CFE_OUTLINE = CFM_OUTLINE
Public Const CFE_SHADOW = CFM_SHADOW
Public Const CFE_EMBOSS = CFM_EMBOSS
Public Const CFE_IMPRINT = CFM_IMPRINT
Public Const CFE_DISABLED = CFM_DISABLED
Public Const CFE_REVISED = CFM_REVISED
' /* NOTE: CFE_AUTOCOLOR and CFE_AUTOBACKCOLOR correspond to CFM_COLOR and
' CFM_BACKCOLOR, respectively, which control them */
Public Const CFE_AUTOBACKCOLOR = CFM_BACKCOLOR
' /* Underline types */
Public Const CFU_CF1UNDERLINE = &HFF& ' /* map charformat's bit underline to CF2.*/
Public Const CFU_INVERT = &HFE& ' /* For IME composition fake a selection.*/
Public Const CFU_UNDERLINEDOTTED = &H4& ' /* (*) displayed as ordinary underline */
Public Const CFU_UNDERLINEDOUBLE = &H3& ' /* (*) displayed as ordinary underline */
Public Const CFU_UNDERLINEWORD = &H2& ' /* (*) displayed as ordinary underline */