关于在CEditView视图显示文本
every 2002-07-10 08:24:18 我用CSplitterWnd静态切分上面为CScrollView基类,下面为EDITVIEW类。
我在
#include "tiedit.h"
void CScrollView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
.......
Ctiedit stiedit;
stiedit.WriteText(stixian);
......
}
出现
cannot access protected member declared in class 'Ctiedit'
see declaration of 'Ctiedit::Ctiedit'
error C2248: 'Ctiedit::~Ctiedit' : cannot access protected member declared in class 'Ctiedit'
see declaration of 'Ctiedit::~Ctiedit'
error C2819: type 'Ctiedit' does not have an overloaded member 'operator ->'
see declaration of 'Ctiedit'
class Ctiedit : public CEditView
{
public:
Ctiedit(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(Ctiedit)