basic mfc help
Posted on 2004-04-06
I've just started dabbling in MFC after a few years of c++. I had a short introduction to MFC book lying around so i thought i'd give it a shot on a project for one of my friends. So far i think i've been doing pretty good using that book along with the MS site, but i've ran into a few problems and i'd kind of like to know some answers.
1. What is the alternative for DoModal() ? I mean, how can i make a child/popup window that allows the user to access the parent window?
2. How do i make things load automatically when a popup Window is created? For instance i want a name to be loaded into a text box when one of my dialog classes is instantiated. If i put that code in the constructor it blows up on me because the DoModal() function hasn't been called. I always have to have a button saying something similar to "show results", and when its clicked it loads the values on the screen.
If you want to see some of my code let me know, but more or less i just want to know some general ideas.