如题,主框架下有四个子框架,想把主框架里的数据传递到子框架下面的试图中,怎么做,下面的程序好像有问题
CWnd* pwndChild=(CMainFrame*)(AfxGetApp()->GetMainWnd())->GetWindow(GW_CHILD);
while (pwndChild)
{   
BOOL Flag_Break=FALSE;
CWnd* pwndView=pwndChild->GetWindow(GW_CHILD);
while(pwndView)
{
CRuntimeClass* pClass = pwndView->GetRuntimeClass();
TRACE( "pwndView = %s\n", pClass->m_lpszClassName );
CString str=pClass->m_lpszClassName;
if(str=="CBuoyRecvView")
if(pwndView->IsKindOf (RUNTIME_CLASS(CBuoyRecvView)))
{
pView = (CBuoyRecvView*)pwndView;
Flag_Break=TRUE;
break;
}
pwndView = pwndView->GetNextWindow();
}
if(Flag_Break)
{
break;
}
pwndChild = pwndChild->GetNextWindow();
}