void FindDlg::OnOK() 
{
    UpdateData(TRUE);
CString str,str1;int n;
    ((CReplaceView*) m_pParent)->GetWindowText(str);
n=str.Find(m_strFind,0);
if(n>=0)
{
str1=str.Left(n);
str1+=m_strRep;
int length1=m_strFind.GetLength();
int length=str.GetLength();
str+=str.Right(length-n-length1);
m_pParent->SetWindowText(str);
}
else
{
MessageBox("找不到匹配字符,给出提示对话框");
}
m_pParent->dlg=NULL;
DestroyWindow();
CDialog::OnOK();
}error C2065: 'm_pParent' : undeclared identifier 错误指向((CReplaceView*) m_pParent)->GetWindowText(str);这一行