void A::OnBnClickedButton1()
{
//一个对话框类:Copen.cpp
B* m_B= (B*)GetParent();
m_B->TcpB(_T("A窗口"), _T("调用B窗口"));
}
public
void B::TcpB(CString Name, CString Data)
void B::TcpB(CString Name, CString Data)
{
if (MessageBox(Data, Name, MB_YESNO | MB_ICONWARNING) == IDNO)
return;
}