EditView with OLE
K.V.R.S.Madhav Rao -- madhav@OPTIMASW.COM
Friday, January 19, 1996
I am working with VC++1.52
I would like to develop an editor that
acts as an OLE container. To do this, I thought
of using CEditView with OLE option set as Container.
But AppWizard is not allowing me to select
CEditView as the base class for my app's view class
after setting OLE option as Container.
I would like to know why it is not allowing?
Thanks in advance.
Madhu
Mahale Sunil Pramod -- sunil@teil.soft.net
Sunday, January 21, 1996
[Mini-digest: 2 responses]
Madhu had asked a question...
>
> I am working with VC++1.52
> I would like to develop an editor that
> acts as an OLE container. To do this, I thought
> of using CEditView with OLE option set as Container.
> But AppWizard is not allowing me to select
> CEditView as the base class for my app's view class
> after setting OLE option as Container.
> I would like to know why it is not allowing?
> Thanks in advance.
>
> Madhu
>
Madhu
It is true that Appwizard doesnt allow you to specify CEditView as the
base class if you selected OLE container option. But I tried using CView as
the base class and then I created the application.
Since I wanted CEditView as the base class I replaced globally all the
occurences of the CView with CEditView in the interface and defination file
for Class derived from CView. This works perfectly under VC++ 1.51. Since
this is the version I have installed on my machine.
class CSunilPMahale : public CLoveMFC {
public:
CString GetInetAddr() { return CString("sunil@teil.soft.net"); }
CString GetPhone() { return CString("(080) 8452016"); }
CString GetDisclaimer() { return CString("All I say is fact :-p"); }
};
-----From: mikeblas@interserv.com
On Fri, 19 Jan 1996, "K.V.R.S.Madhav Rao" wrote:
>I would like to know why it is not allowing?
It disallows this because CEditView has no support for OLE objects. If you
want this kind of user interface, you'll need to do all of the painting and
object management yourself.
In Win32, you could just use a CRichEditView.
.B ekiM
--
TCHAR szDisc[] = _T("These words are my own; I do not speak for Microsoft.");
| Вернуться в корень Архива
|