Calling SetSel didn't work, but setting the tab order of OK button work fine.
"Joseph M. Newcomer" wrote:
Set the tab order so the OK button gets focus; it should be 1 in the tab order. It is the
SetFocus that does the selection (why this should be so escapes me; it apparently isn't
optional)
joe
On Wed, 11 Apr 2007 11:22:06 -0700, Tulio <Tulio@discussions.microsoft.com> wrote:
Hi,
I have a CRichEditCtrl in my About dialog and I'm using the StremIn function
(see below). The problem is that the control is showing its contents
selected, I like to show the RTF text unselected. How I deselect the contents
of the control whitout having to click in the control?
Thanks.
EDITSTREAM es = {(DWORD)&strLn, 0, EditStreamCallBack};
m_RichEdt.StreamIn(SF_RTF , es);
m_RichEdt.SetModify(FALSE);
m_RichEdt.LineScroll(-m_RichEdt.GetLineCount(), 0);
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm