How to get text from rich edit control as a CString

后端 未结 1 1772
说谎
说谎 2021-01-28 02:09

I want to get the entire text in a rich edit control as a CString something like GetDlgItemText but this is for dialog boxes. The closest thing i can find from my research is:

1条回答
  •  孤独总比滥情好
    2021-01-28 02:19

    • GetWindowText.
    • GetDlgItemText works to, if you use the parent window and the ID of the RTF Control.
    • WM_GETETXT.

    If you want to retrieve the complete RTF text you Need to use EM_STREAMOUT (enough samples in the net).

    0 讨论(0)
提交回复
热议问题