POINTER TO DIALOG
-
I NEED A POINTER TO ANOTHER DIALOG, WOULD SOMEONE PLEASE DETAIL HOW I CAN DO THIS. PLEASE Kind Regards Kevin
CDialog* pDlg = &AnotherDialog;
please say more, and we'll be glad to help you more ...
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I NEED A POINTER TO ANOTHER DIALOG, WOULD SOMEONE PLEASE DETAIL HOW I CAN DO THIS. PLEASE Kind Regards Kevin
-
CDialog* pDlg = &AnotherDialog;
please say more, and we'll be glad to help you more ...
Maximilien Lincourt Your Head A Splode - Strong Bad
What I'm trying to do is as follows: I've DialogA and DialogB. DialogA has a EDIT BOX (say EBOX1). Dialog B consists of a Button (say BUTTON1). When I press BUTTON1 on DialogB, I want a message to appear on EBOX1 of DialogA. I would like to use the API SetDlgItemText Suggestion very much appreciated.
-
What I'm trying to do is as follows: I've DialogA and DialogB. DialogA has a EDIT BOX (say EBOX1). Dialog B consists of a Button (say BUTTON1). When I press BUTTON1 on DialogB, I want a message to appear on EBOX1 of DialogA. I would like to use the API SetDlgItemText Suggestion very much appreciated.
Haven't you asked this same question twice before? Are the responses you're getting not working? The ones I've seen look right on the money.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
What I'm trying to do is as follows: I've DialogA and DialogB. DialogA has a EDIT BOX (say EBOX1). Dialog B consists of a Button (say BUTTON1). When I press BUTTON1 on DialogB, I want a message to appear on EBOX1 of DialogA. I would like to use the API SetDlgItemText Suggestion very much appreciated.
you need to pass DialogA to DialogB to be able to access it. something like this draft :
...
/// dlgA already created somewhere.
DialogB dlgB;
dlgB.SetOtherDialog( &dlgA );
...DialogB::SetOtherDialog( DialogA* pDlgA )
{
m_pDlgA = pDlgA;
}
...
DialogB::OnButtonClick(/*whatever*/)
{
if ( m_pDlgA != NULL )
{
m_pDlgA->SetTextOnControl( /* some text */ );
}
}
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I NEED A POINTER TO ANOTHER DIALOG, WOULD SOMEONE PLEASE DETAIL HOW I CAN DO THIS. PLEASE Kind Regards Kevin
Where have you defined the dialog classes? In MainFrame or directly in some function? Robert-Antonio "CRAY is the only computer, which runs an endless loop in just 4 hours"