Rich edit control does not do word-around selection?!

07/07/2004 - 15:48 por Frank | Informe spam
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 |
+--+

Preguntas similare

Leer las respuestas

#1 Frank
07/07/2004 - 19:01 | Informe spam
i paid many hours on it, and so far, i find the problem is from the
grandfather window. Originally that CRichEditCtrl is a child window of
CMyView(derived from CView), and CMyView is a child window of another
CXView window(derived from CView). I tried to replace CXView with
CXWnd(derived from CWnd), it is figured out. But!!! Why??? i really dont
know why! i think they must have some differences, so please tell me what
are differences between them if you know it. very very thanks :-))

"Frank" :
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 |
+--+


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida