Solved

Controls in an MDI child window.

Posted on 1999-01-15
2
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 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