-
April 15th, 2005, 07:23 PM
#1
Get a pointer to other dialog window
Hello,
I have dialog based app. main window opens another 2 dialogs (A and B), i am looking for a way passing data and updating it from event on dialog A to B.
//pointer to B dialog
InfoDlg *IWnd = (InfoDlg*)GetParent(); //<-- i dont remember how to set pointer to other window not to parent
// send data to B
IWnd->m_number = 1234;
// update data in B
IWnd->UpdateData(FALSE);
Thanks for help...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|