15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Highlighting in CRichEditView

Alok Khanna -- alok@clarit.com
Friday, April 12, 1996


MSVC++ 4.0
NT 3.51

I need to highlight a set of strings in the CRichEditView window. I am
using CRichEditCtrl::SetSel but it removes the highlight, when I
click on a window or when I select another string for highlighing. 

How can I highlight, multiple occurance of a string in the window?

How can this be sticky (I need the highlighting to stay even after
the window looses focus)? 

In nutshell, I need the same functionality like Microsoft Developer
Studio Search/Query option. When you query on a given string, the "Query
String" appears highlighted in the Document Viewer (InfoViewer Topic
window). 

Is there any example to make this work?



Poul A. Costinsky -- Poul@wizsoft.com
Thursday, April 18, 1996

You can change text/bacjground color of the text you want to highlight.

Hope this helps.
Regards,
Poul.
  ("`-''-/").___..--''"`-._	~~~~~~~~~~Poul A. Costinsky~~~~~~~~~~
    (`6_ 6  )   `-.  (     ).`-.__.`)     Poul@wizsoft.com
     (_Y_.)'  ._   )  `._ `. ``-..-'      PoulACost@msn.com
   _..`--'_..-_/  /--'_.' ,'
  (il).-''  (li).'  ((!.-


----------
From: 	Alok Khanna[SMTP:alok@clarit.com]
Sent: 	Friday, April 12, 1996 10:23 PM
To: 	mfc-l@netcom.com
Subject: 	Highlighting in CRichEditView


MSVC++ 4.0
NT 3.51

I need to highlight a set of strings in the CRichEditView window. I am
using CRichEditCtrl::SetSel but it removes the highlight, when I
click on a window or when I select another string for highlighing. 

How can I highlight, multiple occurance of a string in the window?

How can this be sticky (I need the highlighting to stay even after
the window looses focus)? 

In nutshell, I need the same functionality like Microsoft Developer
Studio Search/Query option. When you query on a given string, the "Query
String" appears highlighted in the Document Viewer (InfoViewer Topic
window). 

Is there any example to make this work?



mfc-l Conference @ scet.org.uk -- XINCLXmfc-l@scet.org.uk
Monday, April 22, 1996

Poul@wizsoft.com,Internet writes:
You can change text/bacjground color of the text you want to highlight.

How do you change the background of a single word without changing the
background of the whole RichEditControl?


--

     _/_/_/  _/_/_/  _/_/_/  _/_/_/  | Tel: (0141) 337 5000  
    _/      _/      _/        _/     | Fax: (0141) 337 5050  
   _/_/_/  _/      _/_/      _/      | Net: scet@scet.org.uk 
      _/  _/      _/        _/       | AppleLink: SCET.DEV   
 _/_/_/  _/_/_/  _/_/_/    _/        |                       
......learning through technology   |




| Вернуться в корень Архива |