Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExtract MS Word Menu Bar layout Pin
Ishan Banerjee9-Nov-05 11:25
Ishan Banerjee9-Nov-05 11:25 
Questionopengl drawtext Pin
lrola9-Nov-05 9:12
lrola9-Nov-05 9:12 
AnswerRe: opengl drawtext Pin
Mathieu Dijkstra9-Nov-05 9:53
Mathieu Dijkstra9-Nov-05 9:53 
QuestionSaving exceptions Pin
Federico Milano9-Nov-05 9:07
Federico Milano9-Nov-05 9:07 
Questionproblem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 8:59
Mathieu Dijkstra9-Nov-05 8:59 
QuestionRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:11
David Crow9-Nov-05 10:11 
AnswerRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 10:24
Mathieu Dijkstra9-Nov-05 10:24 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:34
David Crow9-Nov-05 10:34 
There are several ways to do this. The easiest, although not considered good OO practice, is to mark the variable as public in the parent class. Then in the child, simply call GetParent(). Or, mark the variable as private and use a get/set method instead.

Also, you could add the same type of variable to the child, mark it as public, and assign it a value before calling the dialog's DoModal() method.


"Take only what you need and leave the land as you found it." - Native American Proverb


GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 11:07
Mathieu Dijkstra9-Nov-05 11:07 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 22:57
Mathieu Dijkstra9-Nov-05 22:57 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 2:36
David Crow10-Nov-05 2:36 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 7:17
Mathieu Dijkstra10-Nov-05 7:17 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 8:20
David Crow10-Nov-05 8:20 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 8:31
Mathieu Dijkstra10-Nov-05 8:31 
QuestionFast files Pin
hint_549-Nov-05 7:42
hint_549-Nov-05 7:42 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 8:12
cgreathouse9-Nov-05 8:12 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:06
hint_549-Nov-05 9:06 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 9:36
cgreathouse9-Nov-05 9:36 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:48
hint_549-Nov-05 10:48 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:55
David Crow9-Nov-05 9:55 
AnswerRe: Fast files Pin
David Crow9-Nov-05 8:34
David Crow9-Nov-05 8:34 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:15
hint_549-Nov-05 9:15 
General[Message Deleted] Pin
Mathieu Dijkstra9-Nov-05 9:31
Mathieu Dijkstra9-Nov-05 9:31 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:49
David Crow9-Nov-05 9:49 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:06
hint_549-Nov-05 10: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.