具体怎么实现啊?我是很菜的,怎么调用SetSel啊

解决方案 »

  1.   

    m_strRichEdit 为RichEdit的Value型变量
    m_RichEdit 为RichEdit的Control型变量m_RichEdit.SetSel(m_strRichEdit.GetLength(),m_strRichEdit.GetLength());
      

  2.   

    void UnmanagedScrollToButtom(int hwndRichEdit)
    {
    HWND h=(HWND)hwndRichEdit;
    int line = SendMessage(h, EM_GETFIRSTVISIBLELINE, 0, 0);
    int linecount = SendMessage(h, EM_GETLINECOUNT, 0, 0);
    SendMessage(h, EM_LINESCROLL, 0, (linecount - line - 2));
    }
      

  3.   

    发送消息给自己
    编辑框.sendMessage(277,7,0);