作一个继承TRichEdit的控件,我想继承ProtectChange?
我想继承ProtectChange(int,int);
可是ProtectChange是CustomRichEdit的私有成员
__fastcall TMyRich::TMyRich(TComponent *Owner):TRichEdit(TComponent *Owner)
{
DefAttributes->Protected=true;
}
我想在OnProtectChange时
当 复制或其他时 想AllowChange=true怎么办?
(不能继承ProtectChange(int,int);,如果用EN_PROTECTED ,AllowChange=true怎么处理呢?