the rich edit control does not do word-around selection when the user
double-clicks the a word in rich edit window. So i wanna use SetOptions() to
figure it out, but unlucky it still does work after that. following code is
snippet.
class CMyView
{...
m_wndRichEdit;
};
CMyView::OnCreate(...)
{...
m_wndRichEdit.Create(WS_CHILD | WS_VSCROLL | WS_VISIBLE
| ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN
| ES_SUNKEN | ES_NOHIDESEL , CRect(0,0,0,0), this,
ID_WND_RICHEDIT);
m_wndRichEdit.SetFont(...);
m_wndRichEdit.SetOptions(ECOOP_OR, ECO_AUTOWORDSELECTION);
}
Frank F.Han
+--+
| winsays@:-)hotmail:-).com |
+--+
Leer las respuestas