-
June 26th, 2012, 07:03 PM
#1
Hide highlighting from SetSel
Hi,
I'm using SetSel in my RichEditCtrl window to replace certain lines of text. The problem is its not aesthetically pleasing when the window highlights the word for a split second and then replaces the text because it seems to flash the screen in a seizure like manner.
How do I hide the highlightings from SetSel?
-
June 26th, 2012, 08:11 PM
#2
Re: Hide highlighting from SetSel
I solved the issue:
In the on create
SetEventMask(GetEventMask()|ENM_UPDATE);
then activate the message handler
void CCtrl::OnEnUpdate()
{
::SendMessage(m_hWnd,WM_KILLFOCUS,0,0);
}
and then finally set the option to
HideSelection(1,1);
but now I have to manually update by calling
UpdateWindow();
Which is fine..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|