Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a Dialog called CMyDialog1 and it has a MSFlexGrid (m_ctlGrid).

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top