Solved

Controls in an MDI child window.

Posted on 1999-01-15
2
189 Views
Last Modified: 2013-11-20
How do you put ActiveX controls in a Document view object?

My document's data would best be visualized by a combination of Text boxes, toggle buttons and plots.  I know how to do this in a dialog based program but have not been able to figure out how to add controls to a window in the document/view architecture.
0
Comment
Question by:rrammage
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
jrmcg earned 100 total points
ID: 1327755
When you are creating your project, create your view with the CFormView class.  This can be accomplished with the wizard when you are creating the project by:

When it gets to the section that shows you the classes that App Wizard creates for you, highlight CProjectNameView and drop down the box that contains the base class and select CFormView.  This will make the view look and act just like a dialog box.  Then just associate your document variables with the variables you assign to the controls as you normally would.

This would be the easiest way to implement the way you want your display.

If you need any other help with it let me know.

J.R.
0
 
LVL 2

Expert Comment

by:jrmcg
ID: 1327756
>> Then just associate your document variables with the variables you assign to the
>> controls as you normally would.

variables you assign to the controls

not actually control variables, but like the CString variable you would assign to a CEdit box control.

I didn't want to throw you off.

J.R.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 86
sameEnds challenge 3 135
string initialization in java 11 110
zeroMAx challenge 20 88
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now