Solved

Controls in an MDI child window.

Posted on 1999-01-15
2
202 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix Command -- Challenging  question 7 95
Path of Workbook 3 86
JQuery serialize and unserialize 8 134
Message not shown 5 67
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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