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

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


OCX as a View

Paul E. Rosen -- prosen@fte.com
Monday, October 28, 1996

Environment: Win 95, VC 4.2flat

Hi,

I'd like to set up a view like CListView, except that instead of being based
on a CListCtrl, it would be based on a OCX control. Is this possible? (The
first control I'll be experimenting with is the grid control.)

Thanks,


Paul Rosen, Frontline Test Equipment, Inc.
Internet: prosen@fte.com, http://www.fte.com, ftp.fte.com
Voice: 804-984-4500, Fax: 804-984-4505, BBS: 804-984-4503
Real Mail: PO Box 7507, Charlottesville, VA  22906-7507, USA
Location: 2114 Angus Road, Suite 228, Charlottesville, VA 22901





gary_hellman@smtpgate.disclosure.com
Wednesday, October 30, 1996

[Mini-digest: 2 responses]

     I believe (used to be...) there is an example with VC++ that uses a 
     splitter with two views, one is the grid control, the other a graph. 
     The user enters data into the grid - the graph is displayed on the 
     chart.


______________________________ Reply Separator _________________________________
Subject: OCX as a View
Author:  mfc-l@netcom.com at internet
Date:    10/30/96 11:17 AM


Environment: Win 95, VC 4.2flat
     
Hi,
     
I'd like to set up a view like CListView, except that instead of being based 
on a CListCtrl, it would be based on a OCX control. Is this possible? (The 
first control I'll be experimenting with is the grid control.)
     
Thanks,
     
     
Paul Rosen, Frontline Test Equipment, Inc.
Internet: prosen@fte.com, http://www.fte.com, ftp.fte.com 
Voice: 804-984-4500, Fax: 804-984-4505, BBS: 804-984-4503 
Real Mail: PO Box 7507, Charlottesville, VA  22906-7507, USA
Location: 2114 Angus Road, Suite 228, Charlottesville, VA 22901
     
     

-----From: Michael Iles 


Environment: NT 4.0, VC 4.2b

> Environment: Win 95, VC 4.2flat
>
> Hi,
>
> I'd like to set up a view like CListView, except that instead of being   
based
> on a CListCtrl, it would be based on a OCX control. Is this possible?   
(The
> first control I'll be experimenting with is the grid control.)

We're doing this; you need to derive from CFormView, which is (as I
understand it) the only CView-derived class that can hold controls. You   
    

can assign a dialog resource to your CFormView-derived class and include   
    

the OCX on the dialog, or simply create the OCX at runtime in the
OnCreate handler.

Mike, michaeli@dra.com



gary_hellman@smtpgate.disclosure.com
Wednesday, October 30, 1996

[Mini-digest: 2 responses]

     I believe (used to be...) there is an example with VC++ that uses a 
     splitter with two views, one is the grid control, the other a graph. 
     The user enters data into the grid - the graph is displayed on the 
     chart.


______________________________ Reply Separator _________________________________
Subject: OCX as a View
Author:  mfc-l@netcom.com at internet
Date:    10/30/96 11:17 AM


Environment: Win 95, VC 4.2flat
     
Hi,
     
I'd like to set up a view like CListView, except that instead of being based 
on a CListCtrl, it would be based on a OCX control. Is this possible? (The 
first control I'll be experimenting with is the grid control.)
     
Thanks,
     
     
Paul Rosen, Frontline Test Equipment, Inc.
Internet: prosen@fte.com, http://www.fte.com, ftp.fte.com 
Voice: 804-984-4500, Fax: 804-984-4505, BBS: 804-984-4503 
Real Mail: PO Box 7507, Charlottesville, VA  22906-7507, USA
Location: 2114 Angus Road, Suite 228, Charlottesville, VA 22901
     
     

-----From: Michael Iles 


Environment: NT 4.0, VC 4.2b

> Environment: Win 95, VC 4.2flat
>
> Hi,
>
> I'd like to set up a view like CListView, except that instead of being   
based
> on a CListCtrl, it would be based on a OCX control. Is this possible?   
(The
> first control I'll be experimenting with is the grid control.)

We're doing this; you need to derive from CFormView, which is (as I
understand it) the only CView-derived class that can hold controls. You   
    

can assign a dialog resource to your CFormView-derived class and include   
    

the OCX on the dialog, or simply create the OCX at runtime in the
OnCreate handler.

Mike, michaeli@dra.com




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