communication between dialogs

Hi,
I have a main dialog called CTabDlg.
In CTabDlg I open a new dialog called add_pbk by doing
1
2
3
Add_PBK *add_diag = new Add_PBK();
add_diag->Create(IDD_ADDPBK,this);
add_diag->ShowWindow(SW_SHOW);


I want add_pbk to tell CTabDlg that it is done when OK button is pressed.How can I do this?
dd_diag->SendMessage(WM_COMMAND, IDOK, 0);
Topic archived. No new replies allowed.