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

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


CRichEditCtrl - WordBreak!

Boerge Hansen -- etoboh@eto.ericsson.se
Thursday, January 30, 1997

Environment : VC++ 4.0 WIN NT3.51=09

I want to switch off the wordbreak/wordwrap in my CRichEditCtrl. Does
anybody know of an easy way to this?

As far as I can understand I have to override some functions. Anybody
know which one and how?

Thanks!

Boerge


--=20
+-------------------------------------------+
| B=F8rge Hansen       etoboh@eto.ericsson.se |
|                    Memo : ETO.ETOBOH      |
| Software Engineer  Tel  :+4766841516      |
+--                                       --+
| ERICSSON AS        Network Management     |
| Po Box 34          Competence Centre      |
| N-1361 Billingstad Tel    :+4766841200    |
| NORWAY             Fax    :+4766841550    |=20
+-------------------------------------------+



JCS -- JCS@ficsgrp.com
Monday, February 03, 1997

[Mini-digest: 2 responses]


Hi Boerge,

Try calling this in the OnInitialUpdate of your CRichEditView:

void CYourRichEditView::OnInitialUpdate()
{
 CRichEditView::OnInitialUpdate();

 /* SET THE WORDWRAPPING */
 m_nWordWrap = WrapNone; // No automatic word wrapping
}

Hope this helps.

Jan Castermans
FICS Group, Belgium

 ----------
From:  Boerge Hansen
Sent:  donderdag 30 januari 1997 18:35
To:  mfc-l@netcom.com
Subject:  CRichEditCtrl - WordBreak!

Environment : VC++ 4.0 WIN NT3.51=09

I want to switch off the wordbreak/wordwrap in my CRichEditCtrl. Does
anybody know of an easy way to this?

As far as I can understand I have to override some functions. Anybody
know which one and how?

Thanks!

Boerge


 --=20
+-------------------------------------------+
| B=F8rge Hansen       etoboh@eto.ericsson.se |
|                    Memo : ETO.ETOBOH      |
| Software Engineer  Tel  :+4766841516      |
+--                                       --+
| ERICSSON AS        Network Management     |
| Po Box 34          Competence Centre      |
| N-1361 Billingstad Tel    :+4766841200    |
| NORWAY             Fax    :+4766841550    |=20
+-------------------------------------------+
-----From: JCS 


Hi Boerge,

Sorry for my incorrect assumption. For a Ctrl you should do:

ctrl.SetTargetDevice(NULL, 1);

(FYI this you can find by looking in the source code of MFC - i.e.   
viewrich.cpp)

Jan Castermans,
FICS Group, Belgium

P.S. let me know if it works


 ----------
From:  Boerge Hansen
Sent:  dinsdag 4 februari 1997 9:05
To:  JCS
Subject:  Re: CRichEditCtrl - WordBreak!

JCS wrote:
>
> Hi Boerge,
>
> Try calling this in the OnInitialUpdate of your CRichEditView:
>
> void CYourRichEditView::OnInitialUpdate()
> {
>  CRichEditView::OnInitialUpdate();
>
>  /* SET THE WORDWRAPPING */
>  m_nWordWrap = WrapNone; // No automatic word wrapping
> }
>
> Hope this helps.
>
> Jan Castermans
> FICS Group, Belgium
>

Thanks but this will not do it. I am working with a RichEditControl, not
a RichEditView

Boerge

 --
+-------------------------------------------+
| Bшrge Hansen       etoboh@eto.ericsson.se |
|                    Memo : ETO.ETOBOH      |
| Software Engineer  Tel  :+4766841516      |
+--                                       --+
| ERICSSON AS        Network Management     |
| Po Box 34          Competence Centre      |
| N-1361 Billingstad Tel    :+4766841200    |
| NORWAY             Fax    :+4766841550    |
+-------------------------------------------+



pjn -- pjn@indigo.ie
Sunday, February 09, 1997

On Thu, 30 Jan 1997 18:35:32 +0000, you wrote:

>Environment : VC++ 4.0 WIN NT3.51=09
>
>I want to switch off the wordbreak/wordwrap in my CRichEditCtrl. Does
>anybody know of an easy way to this?
>
>As far as I can understand I have to override some functions. Anybody
>know which one and how?
>
>Thanks!
>
>Boerge
>
>
>--=20
>+-------------------------------------------+
>| B=F8rge Hansen       etoboh@eto.ericsson.se |
>|                    Memo : ETO.ETOBOH      |
>| Software Engineer  Tel  :+4766841516      |
>+--                                       --+
>| ERICSSON AS        Network Management     |
>| Po Box 34          Competence Centre      |
>| N-1361 Billingstad Tel    :+4766841200    |
>| NORWAY             Fax    :+4766841550    |=20
>+-------------------------------------------+
>


Have a look at CRichEditCtrl::SetOptions(..)



                             '''	  =20
                             @ @
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
ooO-(_)-Ooo=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+
|                                           PJ Naughter              |
|                                                                    |
| Software Developer                   Email: pjn@indigo.ie          |
| Softech Telecom                      Tel:   +353-1-2958384         |
|                                      Fax:   +353-1-2956290         |
| Author of DTime - A Collection       URL:   http://indigo.ie/~pjn  |
| of Date & Time classes for MFC       Mail:  Cahore,                |
|            And                              Ballygarret,           |
| Notpad, a replacement Notepad               Gorey                  |
| for Windows 95 and NT 4                     Co. Wexford            |
|                                             Ireland                |
|                                                                    |
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+




Become an MFC-L member | Вернуться в корень Архива |