September 2003 Archives

EM_STREAMIN

|

What do you usually do when you need to set text in a Windows control? You do one of the following:

  • SetWindowText()
  • SetDlgItemText()
  • SendMessage(WM_SETTEXT)
  • SendMessage(WM_SETTEXTEX)

It's tempting to do the same for a Rich Edit control, and sure enough, this will work on almost all versions of Windows.