Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cdraycott / timmay3141 1

Status
Not open for further replies.

jimjake

Technical User
Oct 30, 2004
25
US
cdraycott / timmay3141, First I would like to thank you for your quick
answers. Now I have lost all the hair I had left (HA HA).

In my HelloSDI project I have these files.
HelloDlg.cpp
HelloSDI.cpp
HelloSDI.rc
HelloSDIDoc.cpp
HelloSDIView.cpp
MainFrm.cpp
stdafx.cpp
I still do not understand
Where should I put the code
CMyDialog myDlg;
myDlg.DoModal(); -----
and would it be
ChelloDlg HelloDlg;
HelloDlg.DoModal();
I feel bad being so stupid, bear with me I will learn………Jim
 
Where you put the code depends on when you want the dialog to appear. If you want it to appear when the program is run, override the OnInitialUpdate() method of the CView class. More likely you want it to appear when you select something from the menu, in which case you just add a message handler for that menu item and put the code in there (yes, your HelloDlg code looked right). If you don't know how to do that, I'm sure it's in your book - just skip the section you are currently working on and come back to it later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top