Click here to Skip to main content
16,012,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please help me Pin
sahar.safi8-Apr-07 23:31
sahar.safi8-Apr-07 23:31 
AnswerRe: please help me Pin
Hamid_RT9-Apr-07 2:08
Hamid_RT9-Apr-07 2:08 
AnswerRe: please help me Pin
Hamid_RT9-Apr-07 2:08
Hamid_RT9-Apr-07 2:08 
QuestionRe: please help me Pin
sahar.safi9-Apr-07 2:21
sahar.safi9-Apr-07 2:21 
AnswerRe: please help me Pin
Hamid_RT9-Apr-07 2:50
Hamid_RT9-Apr-07 2:50 
QuestionHow to communicate between unrelated dialog box? Pin
iayd8-Apr-07 22:14
iayd8-Apr-07 22:14 
AnswerRe: How to communicate between unrelated dialog box? Pin
Naveen8-Apr-07 22:26
Naveen8-Apr-07 22:26 
GeneralRe: How to communicate between unrelated dialog box? Pin
iayd8-Apr-07 22:50
iayd8-Apr-07 22:50 
But I am beginner so I couldn't understand the answer.Here is what I did;
in first dialog box;

BOOL CDlg1::OnInitDialog()
{
CDialog::OnInitDialog();
CDlg2 *dlg2 = new CDlg2;
CWnd::SetOwner(dlg2);
return TRUE;
}

In sacond dialog box(I am trying to write something to the edit box of first dialog box when I push a button in second dialog box)

void CDlg2::OnButton1()
{
CDlg1 *dlg = (CDlg1*) GetOwner();
dlg->m_edit = "text for the edit box in first dialog box";
}
These two dialog boxes are unrelated.Where is the mistake?

GeneralRe: How to communicate between unrelated dialog box? Pin
Naveen8-Apr-07 22:59
Naveen8-Apr-07 22:59 
GeneralRe: How to communicate between unrelated dialog box? Pin
iayd8-Apr-07 23:20
iayd8-Apr-07 23:20 
GeneralRe: How to communicate between unrelated dialog box? Pin
Naveen8-Apr-07 23:38
Naveen8-Apr-07 23:38 
QuestionRe: How to communicate between unrelated dialog box? Pin
iayd9-Apr-07 0:09
iayd9-Apr-07 0:09 
AnswerRe: How to communicate between unrelated dialog box? Pin
Naveen9-Apr-07 0:46
Naveen9-Apr-07 0:46 
GeneralRe: How to communicate between unrelated dialog box? Pin
David Crow9-Apr-07 3:08
David Crow9-Apr-07 3:08 
GeneralRe: How to communicate between unrelated dialog box? Pin
Naveen9-Apr-07 17:15
Naveen9-Apr-07 17:15 
AnswerRe: How to communicate between unrelated dialog box? Pin
Hamid_RT9-Apr-07 2:15
Hamid_RT9-Apr-07 2:15 
QuestionRe: How to communicate between unrelated dialog box? Pin
David Crow9-Apr-07 3:12
David Crow9-Apr-07 3:12 
AnswerRe: How to communicate between unrelated dialog box? Pin
iayd9-Apr-07 3:19
iayd9-Apr-07 3:19 
QuestionPolyline breakable between points Pin
Engineer Masood8-Apr-07 22:12
Engineer Masood8-Apr-07 22:12 
AnswerRe: Polyline breakable between points Pin
sahar.safi8-Apr-07 23:06
sahar.safi8-Apr-07 23:06 
GeneralRe: Polyline breakable between points Pin
Hamid_RT9-Apr-07 2:13
Hamid_RT9-Apr-07 2:13 
AnswerRe: Polyline breakable between points Pin
Mark Salsbery9-Apr-07 7:20
Mark Salsbery9-Apr-07 7:20 
QuestionHow to use Registry function on Non-Admin Account [modified] Pin
VC_RYK8-Apr-07 21:27
VC_RYK8-Apr-07 21:27 
QuestionChanging SDI main window name Pin
sulabh_expert@rediffmail.com8-Apr-07 21:16
sulabh_expert@rediffmail.com8-Apr-07 21:16 
AnswerRe: Changing SDI main window name Pin
Hamid_RT8-Apr-07 21:26
Hamid_RT8-Apr-07 21:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.