Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery10-Mar-08 7:54
Mark Salsbery10-Mar-08 7:54 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 22:50
Hanan88810-Mar-08 22:50 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:18
Mark Salsbery11-Mar-08 6:18 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
ThatsAlok10-Mar-08 22:35
ThatsAlok10-Mar-08 22:35 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:19
Mark Salsbery11-Mar-08 6:19 
QuestionC++ graph library equivalent to MSAGL or GLEE? Pin
jwalsh10-Mar-08 6:33
jwalsh10-Mar-08 6:33 
QuestionRe: C++ graph library equivalent to MSAGL or GLEE? Pin
Maximilien10-Mar-08 7:11
Maximilien10-Mar-08 7:11 
QuestionRestricting others to inheritance from my class? Pin
Kishore JP10-Mar-08 5:34
Kishore JP10-Mar-08 5:34 
QuestionRe: Restricting others to inheritance from my class? Pin
CPallini10-Mar-08 6:00
mveCPallini10-Mar-08 6:00 
GeneralRe: Restricting others to inheritance from my class? Pin
David Crow10-Mar-08 6:07
David Crow10-Mar-08 6:07 
GeneralRe: Restricting others to inheritance from my class? Pin
Randor 10-Mar-08 6:16
professional Randor 10-Mar-08 6:16 
GeneralRe: Restricting others to inheritance from my class? Pin
Demian Panello10-Mar-08 6:21
Demian Panello10-Mar-08 6:21 
GeneralRe: Restricting others to inheritance from my class? Pin
Maxwell Chen10-Mar-08 6:25
Maxwell Chen10-Mar-08 6:25 
GeneralRe: Restricting others to inheritance from my class? Pin
led mike10-Mar-08 6:31
led mike10-Mar-08 6:31 
GeneralRe: Restricting others to inheritance from my class? Pin
Maxwell Chen10-Mar-08 6:48
Maxwell Chen10-Mar-08 6:48 
GeneralRe: Restricting others to inheritance from my class? Pin
led mike10-Mar-08 6:59
led mike10-Mar-08 6:59 
GeneralRe: Restricting others to inheritance from my class? Pin
Maxwell Chen10-Mar-08 7:03
Maxwell Chen10-Mar-08 7:03 
GeneralRe: Restricting others to inheritance from my class? Pin
led mike10-Mar-08 7:28
led mike10-Mar-08 7:28 
GeneralRe: Restricting others to inheritance from my class? Pin
Nemanja Trifunovic10-Mar-08 7:19
Nemanja Trifunovic10-Mar-08 7:19 
GeneralRe: Restricting others to inheritance from my class? [modified] Pin
led mike10-Mar-08 8:23
led mike10-Mar-08 8:23 
GeneralRe: Restricting others to inheritance from my class? Pin
ThatsAlok10-Mar-08 9:10
ThatsAlok10-Mar-08 9:10 
GeneralAccessing a method in the Dlg object from the App object. Pin
LCI10-Mar-08 5:17
LCI10-Mar-08 5:17 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
David Crow10-Mar-08 5:30
David Crow10-Mar-08 5:30 
GeneralRe: Accessing a method in the Dlg object from the App object. Pin
Maxwell Chen10-Mar-08 5:30
Maxwell Chen10-Mar-08 5:30 
"Test.cpp" is where your CTestApp implementation is.
"TestDlg.cpp" is where your main dialog window CTestDlg implementation is.

In "Test.cpp", there is the function CTestApp::InitInstance.
Inside this function body, you can see the variable
// ...
CTestDlg  dlg;
dlg.DoModal();
// ...

So you can do initialization like this:
// ...
CTestDlg  dlg;
dlg.InitMyMemberValues();
dlg.DoModal();
// ...


  Maxwell Chen

GeneralRe: Accessing a method in the Dlg object from the App object. Pin
LCI10-Mar-08 5:37
LCI10-Mar-08 5:37 

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.