Guest_imported
New member
- Jan 1, 1970
- 0
I have a Dialog called CMyDialog1 and it has a MSFlexGrid (m_ctlGrid).
And I have another dialog called CMyDialog2. How may I get control on m_ctlGrid in my CMyDialog2.
void CMyDialog2::OnCheckAGrid()
{
// TODO: Add your command handler code here
// I know, that's horrible, but....
CMyDialog1 dlg;
dlg.m_ctlGrid.Clear(); <==== No found
dlg.m_ctlGrid.Refresh(); <=== neither
dlg.m_ctlGrid.SetTextArray(...); <<== add my data;
dlg.DoModal();
}
Thank
And I have another dialog called CMyDialog2. How may I get control on m_ctlGrid in my CMyDialog2.
void CMyDialog2::OnCheckAGrid()
{
// TODO: Add your command handler code here
// I know, that's horrible, but....
CMyDialog1 dlg;
dlg.m_ctlGrid.Clear(); <==== No found
dlg.m_ctlGrid.Refresh(); <=== neither
dlg.m_ctlGrid.SetTextArray(...); <<== add my data;
dlg.DoModal();
}
Thank