Re: Old question:about CHtmlEditCtrl
Actually I was wrong about the linker problem.
Simply inherite a class from CHtmlEditCtrl and create one of those instead.
class CMyHtmlEditCtrl : public CHtmlEditCtrl
{
public:
CMyHtmlEditCtrl() { }
~CMyHtmlEditCtrl() { }
};
class CMyDialog : public CDialog
{
private:
CMyHtmlEditCtrl m_HtmlEditCtrl;
};
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog();
m_HtmlEditCtrl.Create(NULL,0,CRect(0,0,400,400),this,IDC_HTMLEDITCTRL);
return TRUE;
}
AliR.
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:WJ02i.8040$2v1.2484@newssvr14.news.prodigy.net...
I would use CHtmlEditView in your dialog. CHtmlEditCtrl seem to have
problems. The first problem is that ~CHtmlEditCtrl is defined as
protected. So you will have to inherite a class from CHtmlEditCtrl in order
to use it. Next problem is that even when you do that you still get a link
error about the destructor.
Good luck
AliR.
"goodidea" <qycx123@gmail.com> wrote in message
news:1179160616.749254.304680@y80g2000hsf.googlegroups.com...
Does anybody have an example of CHtmlEditCtrl as a control member
variable of a dialog or formview? The only sample I have found is
basically the project generated by wizard with CHtmlEditView as a
view
class. Thanks.