Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTF SCROLLBAR
#4
It also somehow works, and is easier. But you need to update text in control2 when text (number of lines) in control1 changes. And remove WS_VSCROLL style from control1. And optionally add ES_AUTOHSCROLL style to both controls to prevent word wrapping. And change Edit to RichEdit20A.

To receive EN_CHANGE message from a rich edit control, under case WM_INITDIALOG use
Code:
Copy      Help
,int h=id(3 hDlg)
,SendMessage h EM_SETEVENTMASK 0 ENM_CHANGE

, and insert this under sel wParam
Code:
Copy      Help
,case EN_CHANGE<<16|3
,out 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)