Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing data from modal dialog. Pin
SzyKam17-Sep-06 13:12
SzyKam17-Sep-06 13:12 
GeneralRe: Passing data from modal dialog. Pin
Christian Graus17-Sep-06 13:15
protectorChristian Graus17-Sep-06 13:15 
GeneralRe: Passing data from modal dialog. Pin
SzyKam17-Sep-06 13:26
SzyKam17-Sep-06 13:26 
GeneralRe: Passing data from modal dialog. Pin
Christian Graus17-Sep-06 13:39
protectorChristian Graus17-Sep-06 13:39 
GeneralRe: Passing data from modal dialog. Pin
S Douglas17-Sep-06 23:28
professionalS Douglas17-Sep-06 23:28 
GeneralRe: Passing data from modal dialog. Pin
Christian Graus17-Sep-06 23:52
protectorChristian Graus17-Sep-06 23:52 
GeneralRe: Passing data from modal dialog. Pin
S Douglas18-Sep-06 0:37
professionalS Douglas18-Sep-06 0:37 
GeneralRe: Passing data from modal dialog. Pin
S Douglas18-Sep-06 0:47
professionalS Douglas18-Sep-06 0:47 
What I believe Christian is trying to say here is do something to the following affect.

CFoo Chlddlg<br />
/* GetMyText Really is a public method, this allows any necessary business rules to be handled by the CFoo class, internally */<br />
<br />
if(IDOK == Chlddlg.Domodal())<br />
{<br />
	CString str = Chlddlg.GetMyText();<br />
	SetWindowText(str);<br />
}

Dont try and post the string back to the parent dialog, let the parent collect it from the child. This protects the inner workings of both classes. GetMyText() could return any variation of data. (this is just a simple example).



I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:


AnswerRe: Passing data from modal dialog. Pin
erfi17-Sep-06 23:19
erfi17-Sep-06 23:19 
QuestionLoadMenu problem Pin
Mohammad A Gdeisat17-Sep-06 12:02
Mohammad A Gdeisat17-Sep-06 12:02 
AnswerRe: LoadMenu problem Pin
Mohammad A Gdeisat17-Sep-06 12:16
Mohammad A Gdeisat17-Sep-06 12:16 
GeneralRe: LoadMenu problem [modified] Pin
erfi17-Sep-06 19:49
erfi17-Sep-06 19:49 
GeneralRe: LoadMenu problem Pin
Mohammad A Gdeisat18-Sep-06 1:39
Mohammad A Gdeisat18-Sep-06 1:39 
QuestionCan't set Window name when using CreateWindow Pin
BarryOg17-Sep-06 12:02
BarryOg17-Sep-06 12:02 
AnswerRe: Can't set Window name when using CreateWindow Pin
Roland Rüdenauer17-Sep-06 12:30
Roland Rüdenauer17-Sep-06 12:30 
GeneralRe: Can't set Window name when using CreateWindow Pin
BarryOg17-Sep-06 22:04
BarryOg17-Sep-06 22:04 
GeneralRe: Can't set Window name when using CreateWindow Pin
BarryOg18-Sep-06 9:07
BarryOg18-Sep-06 9:07 
QuestionTN035 - include afxres... winres ???? Pin
Vaclav_17-Sep-06 10:16
Vaclav_17-Sep-06 10:16 
Questionneed help with the cursor creating Pin
bloodwinner17-Sep-06 8:45
bloodwinner17-Sep-06 8:45 
Questionscreen Capture Pin
khaled-ahmad17-Sep-06 8:37
khaled-ahmad17-Sep-06 8:37 
Questionplaying with strings Pin
Yustme17-Sep-06 6:35
Yustme17-Sep-06 6:35 
AnswerRe: playing with strings Pin
Nish Nishant17-Sep-06 6:41
sitebuilderNish Nishant17-Sep-06 6:41 
GeneralRe: playing with strings Pin
Yustme17-Sep-06 6:51
Yustme17-Sep-06 6:51 
QuestionExporting form a C++/CLR dll Pin
avimitrani17-Sep-06 5:03
avimitrani17-Sep-06 5:03 
Questionincluding gdiplus Pin
erfi17-Sep-06 2:06
erfi17-Sep-06 2:06 

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.