|
-
May 3rd, 1999, 05:06 PM
#1
Add a form
I want to add 4 forms to my SDI app. I first thought I could use the dialog editor & then create a class to support the form (deriving from CFormView.
When you right-click on your project classes in ClassView, there is an Add Form option? Do I use this in addition to the above, or instead of ? I can't seem to find much explanation on the steps to take to add several forms to an app. Will greatly appreciate any comments or s****. Thanks. JD
-
May 7th, 1999, 08:30 AM
#2
Re: Add a form
If you have a class for your form. you must declare an object of this class
exemple for a CDialog derivated class
COtherDlg clOther(); //i don't know if it take parameters
// Initialistation of member variable of the class
clOther.m_variable =123;
//Display the dialogbox
clOther.DoModal();
m_MainVar =clOther.m_variable;
I hope it help
Marc
Industrial Software Developer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|