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

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


3D look for CRichEditCtrl

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

Environment: VC++ 4.0, NT 3.51

I have created a CRicheditCtrl using it's create function.
But I do not get the 3d look! I have tried to use the windows styles,
but they do not work!
I also tried to use the CreateEx function, but I don not think this
function applies to this Control?

This is how I create the Control:
(displayWinRect is a CRect)

myRichCtrl.Create(WS_CHILD | WS_VISIBLE | ES_MULTILINE |ES_LEFT
|ES_READONLY| WS_BORDER, displayWinRect, this, NULL);

Any help out there?

--=20
        __
       /\ \       B=F8rge Hansen        Systems Engineer
      /  \ \      Network Management  etoboh@eto.ericsson.se
     / /\ \ \     Competence Centre   memo: ETOBOH
    / / /\ \ \=20
   / / /__\_\ \   ERICSSON AS	     =20
  / / /________\  Po Box 34           Tel    :+4766841200
  \/____________| N-1361 Billingstad  Direct :+4766841516
                  NORWAY              Fax    :+4766841550



Brian Jones -- BrianJ@apptechsys.com
Friday, January 24, 1997

Borge,

I have used the CRichEditCtrl 3d look by calling CreateEx and passing
"RICHEDIT" as the ClassName, like this:

CreateEx(
	dwExStyle,
	_T("RICHEDIT"),
	NULL,
	dwEditStyle
	,x,
	y,
	nWidth,
	nHeight,
	pParentWnd->SafeHwnd(),
	NULL,
	NULL);

Brian Jones
Applied Technical Systems
Bremerton, WA, USA

>----------
>From: 	Boerge Hansen[SMTP:etoboh@eto.ericsson.se]
>Sent: 	Thursday, January 23, 1997 3:02 AM
>To: 	mfc-l@netcom.com
>Subject: 	3D look for CRichEditCtrl
>
>Environment: VC++ 4.0, NT 3.51
>
>I have created a CRicheditCtrl using it's create function.
>But I do not get the 3d look! I have tried to use the windows styles,
>but they do not work!
>I also tried to use the CreateEx function, but I don not think this
>function applies to this Control?
>
>This is how I create the Control:
>(displayWinRect is a CRect)
>
>myRichCtrl.Create(WS_CHILD | WS_VISIBLE | ES_MULTILINE |ES_LEFT
>|ES_READONLY| WS_BORDER, displayWinRect, this, NULL);
>
>Any help out there?
>
>-- 
>        __
>       /\ \       Borge Hansen        Systems Engineer
>      /  \ \      Network Management  etoboh@eto.ericsson.se
>     / /\ \ \     Competence Centre   memo: ETOBOH
>    / / /\ \ \ 
>   / / /__\_\ \   ERICSSON AS	      
>  / / /________\  Po Box 34           Tel    :+4766841200
>  \/____________| N-1361 Billingstad  Direct :+4766841516
>                  NORWAY              Fax    :+4766841550
>



Paul Martinsen -- pmartinsen@hort.cri.nz
Tuesday, January 28, 1997

[Mini-digest: 2 responses]

> Environment: VC++ 4.0, NT 3.51
> 
> I have created a CRicheditCtrl using it's create function.
> But I do not get the 3d look! I have tried to use the windows styles,
> but they do not work!
> 
> This is how I create the Control:
> (displayWinRect is a CRect)
> 
> myRichCtrl.Create(WS_CHILD | WS_VISIBLE | ES_MULTILINE |ES_LEFT
> |ES_READONLY| WS_BORDER, displayWinRect, this, NULL);
> 

Try CreateEx with WS_EX_CLIENTEDGE in the extended styles. This
solved the problem with a list box for me. I suspect the class name
for rich edit controls is "RichEdit", but you could check this using
Spy++ .

Paul.
Paul Martinsen.
---------------------------------------------------------------
PhD Student.    p.martinsen@auckland.ac.nz
Deparment of Electrical and Electronic Engineering
University of Auckland.               Hort+Research
Private Bag                           Ruakura Research Centre
Auckland                              Hamilton.
New Zealand                           New Zealand.
---------------------------------------------------------------
-----From: David Fried 

Add ES_SUNKEN to your list of styles. I create my control like this and =
it works (VC++ 4.0)

m_pEditor->Create( WS_CHILD | WS_VISIBLE | ES_SUNKEN,=20
                                Rect,=20
                                this,=20
                                IDC_MY_EDIT);

Hope this helps.

David Fried
Director, Technical Services
Sigma Systems, Inc.
----------
From:  Boerge Hansen[SMTP:etoboh@eto.ericsson.se]
Sent:  Thursday, January 23, 1997 6:03 AM
To:  mfc-l@netcom.com
Subject:  3D look for CRichEditCtrl

Environment: VC++ 4.0, NT 3.51

I have created a CRicheditCtrl using it's create function.
But I do not get the 3d look! I have tried to use the windows styles,
but they do not work!
I also tried to use the CreateEx function, but I don not think this
function applies to this Control?

This is how I create the Control:
(displayWinRect is a CRect)

myRichCtrl.Create(WS_CHILD | WS_VISIBLE | ES_MULTILINE |ES_LEFT
|ES_READONLY| WS_BORDER, displayWinRect, this, NULL);

Any help out there?

--=20
        __
       /\ \       B=F8rge Hansen        Systems Engineer
      /  \ \      Network Management  etoboh@eto.ericsson.se
     / /\ \ \     Competence Centre   memo: ETOBOH
    / / /\ \ \=20
   / / /__\_\ \   ERICSSON AS	     =20
  / / /________\  Po Box 34           Tel    :+4766841200
  \/____________| N-1361 Billingstad  Direct :+4766841516
                  NORWAY              Fax    :+4766841550





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