CRichEditCtrl Problem
-
I am using a a derived class from CRichEditCtrl which I got from codeproject. My application is in mfc. I am displaying a url in the form of hyperlink in my RichEdit control. Now When I click the url in the RichEdit control i am able to open the same url in a web browser. My problems starts now as my cursor position is now at the place in the URL where i clicked as a result of which the new text does not apper in the RichEDit Control in a new line but at the place where i click. Suppose the url is http://www.live2support.com and i clicked at the url with cursor position at p of http an dsuppose the incoming new text for RichEdit control is hello the it is displayed as httphello://www.live2support.com Please help me. Thanks In Advance. Dhiraj
-
I am using a a derived class from CRichEditCtrl which I got from codeproject. My application is in mfc. I am displaying a url in the form of hyperlink in my RichEdit control. Now When I click the url in the RichEdit control i am able to open the same url in a web browser. My problems starts now as my cursor position is now at the place in the URL where i clicked as a result of which the new text does not apper in the RichEDit Control in a new line but at the place where i click. Suppose the url is http://www.live2support.com and i clicked at the url with cursor position at p of http an dsuppose the incoming new text for RichEdit control is hello the it is displayed as httphello://www.live2support.com Please help me. Thanks In Advance. Dhiraj
So change the insertion point before inserting new text.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
So change the insertion point before inserting new text.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
can u tell me how it can be done.
-
can u tell me how it can be done.
Use the
SetSel()
method."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch